Anytime Help Center

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support
  • Guest
  • Log In
English (US)
US English (US)
DE German
CN Chinese
MX Spanish (Mexico)
Chinese (Simplified)
  • AKG
    Microphones Wireless Integrated Systems Automatic Mixers Headphones Discontinued Products (AKG) General AKG Inquiries Certifications (AKG)
  • AMX
    Networked A/V Distribution (AVoIP) Traditional A/V Distribution Video Signal Processing Architectural Connectivity User Interfaces Control Processing Power (AMX) Programming (AMX) Software (AMX) Discontinued Products (AMX) General AMX Inquiries Certifications (AMX)
  • BSS
    Soundweb™ Omni Soundweb™ London Soundweb™ Contrio™ Software (BSS) Discontinued Products (BSS) General BSS Inquiries Certifications (BSS)
  • Crown
    CDi DriveCore Series CDi Series Commercial Series ComTech Series DCi DriveCore Series I-Tech HD Series XLC series XLi Series XLS DriveCore 2 Series XTi 2 Series Discontinued Products (Crown) Software (Crown) General Crown Inquiries Certifications (Crown) Video Manual Series (Crown)
  • dbx
    CX Series 500 Series DriveRack Personal Monitor Control ZonePRO Zone Controllers FeedBack Suppression Microphone Preamps Dynamics Processors Crossovers Equalizers Software (dbx) Discontinued Products (dbx) General dbx Inquiries Certifications (dbx)
  • Flux::
    Immersive Processing Analysis Subscriptions General FLUX: Inquiries
  • JBL
    Cinema Sound Installed Live Portable Tour Sound Recording & Broadcast Software (JBL) Discontinued Products (JBL) Video Manual Series (JBL) General JBL Inquiries Certifications (JBL)
  • Lexicon
    Plugins Effects Processors Cinema Discontinued Products (Lexicon) Video Manual Series (Lexicon) General Lexicon Inquiries Certifications (Lexicon)
  • Martin
    Atomic ELP ERA Exterior MAC P3 VC VDO Tools Discontinued Products (Martin) General Martin Inquiries Certifications (Martin)
  • Soundcraft
    Digital Analog Connected Analog Only Discontinued Products (Soundcraft) Video Manual Series (Soundcraft) General Soundcraft Inquiries Certifications (Soundcraft)
  • General HARMAN Inquiries
    Dante
+ More
  • Home
  • AMX
  • Programming (AMX)
  • Programming

Setting Controller IP via Code

Technical Support Guide

Written by Will Fraser

Updated at March 2nd, 2026

Table of Contents

Brand: Models: Overview: Download: Example Code:

Brand:

  • AMX

Models:

  • NI-Series Controllers
  • NX-Series Controllers

Overview:

Below is an example of code that if implemented into your running program will allow you to set the IP address of the processor after first load of the program.

This alongside the file read command could also allow you to set the IP from a text or csv file loaded to the processors FTP.


Download: 

Setting_Master_IP_In_Code.AXW


Example Code: 

PROGRAM_NAME='Main Source'
DEFINE_DEVICE


dvMaster = 00000:00:00



DEFINE_CONSTANT


TL_Poll_1 = 1 //Program



DEFINE_TYPE
DEFINE_VARIABLE


IP_ADDRESS_STRUCT GetIPAddress

IP_ADDRESS_STRUCT SetIPAddress



volatile long tlPollingIntervals_1[]= {1000}



DEFINE_LATCHING
DEFINE_MUTUALLY_EXCLUSIVE


Define_Function fnSetIP()

{

GET_IP_ADDRESS(dvMaster,GetIPAddress) // Read master IP Details

SetIPAddress.Flags = 0           // 0 = Static, 1 = DHCP

SetIPAddress.HostName = 'Netlinx'   // Set Hostname

SetIPAddress.IPAddress = '192.168.1.161' // Set IP

SetIPAddress.SubnetMask = '255.255.255.0' // Set Mask

SetIPAddress.Gateway = '192.168.1.1' // Set Gateway

Select

{

Active(GetIPAddress.Flags != SetIPAddress.Flags):

{

SET_IP_ADDRESS(dvMaster,SetIPAddress) // Config master

REBOOT(dvMaster) // Reboot master

}

Active(SetIPAddress.Flags = 0 && GetIPAddress.HostName != SetIPAddress.HostName):

{

SET_IP_ADDRESS(dvMaster,SetIPAddress) // Config master

REBOOT(dvMaster) // Reboot master

}

Active(SetIPAddress.Flags = 0 && GetIPAddress.IPAddress != SetIPAddress.IPAddress):

{

SET_IP_ADDRESS(dvMaster,SetIPAddress) // Config master

REBOOT(dvMaster) // Reboot master

}

Active(SetIPAddress.Flags = 0 && GetIPAddress.SubnetMask != SetIPAddress.SubnetMask):

{

SET_IP_ADDRESS(dvMaster,SetIPAddress) // Config master

REBOOT(dvMaster) // Reboot master

}

Active(SetIPAddress.Flags = 0 && GetIPAddress.Gateway != SetIPAddress.Gateway):

{

SET_IP_ADDRESS(dvMaster,SetIPAddress) // Config master

REBOOT(dvMaster) // Reboot master

}

}

}

​​DEFINE_START
fnSetIP()

timeline_create(TL_Poll_1,tlPollingIntervals_1,length_array(tlPollingIntervals_1),TIMELINE_ABSOLUTE,TIMELINE_REPEAT)

DEFINE_EVENT​

timeline_event[TL_Poll_1] //replaces DEFINE_PROGRAM

{  

  switch(timeline.sequence)

  {   

case 1: 

{



}

}

}​

Related Videos

template framework

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Brand: Models: Overview: Download: Example Code:

Related Articles

  • Assigning Static IP Addresses to HiQnet Devices
  • Netlinx Client IP Communications

Related Articles

  • Assigning Static IP Addresses to HiQnet Devices
  • Netlinx Client IP Communications
Copyright © HARMAN Professional. All rights reserved. Privacy Policy | Terms of Use
Expand