Question:
Can a MUSE controller connect to and control an NX controller (NX, DVX, DGX, etc.)?
Answer:
Yes, a MUSE controller can connect to an NX controller and send it strings and commands. There is a service in the MUSE controller programming called netlinxClient. Here is an example of this used in Python:
dvController = context.services.get("netlinxClient")
This creates an object named dvController that can be used to connect and communicate with the Netlinx processor. When connecting to the NX controller, you provide the IP address, device number, and login information:
dvController.connect("10.35.88.113",6002,"administrator","password")
The MUSE controller then shows up as a device, with that device number, in the Online Tree of the Netlinx controller. From there you can send Commands and Strings back and forth between the two devices. Netlinx code can then be used to forward on any communications to other ports as needed.
You can have multiple connections from the MUSE controller to the NX that can control and communicate with different devices.
Please reference the example programs provided as a Download in this article for more detailed information.