Control from PC
Nightcrawler
Junior Member
Hi,
I want to know if I can control or more or less call certain functions on a NetLinx box ?
So say I write a module for DMX control or event a button for a sequence of events. I then want to call this from the PowerPoint or other problem through maybe VB script ???
Anyone know a way to do this, I noticed i-ConnectLinx but can't see how the PC side to that works ?
Thanks
Ed
I want to know if I can control or more or less call certain functions on a NetLinx box ?
So say I write a module for DMX control or event a button for a sequence of events. I then want to call this from the PowerPoint or other problem through maybe VB script ???
Anyone know a way to do this, I noticed i-ConnectLinx but can't see how the PC side to that works ?
Thanks
Ed
Comments
-
TCP socket
I would just open a TCP/IP socket on AMX and listen for command strings that you send via VB (using its TCP/IP API).
Cheers! -
Thanks - would this create stablility problems or anything like that ?
Thanks
Ed -
Any stability issues would likely come from the Windows side, but it should probably work pretty cleanly. The AMX side handles sockets very well and easily.
See discussion and examples of IP_SERVER_OPEN the NetLinx programming manual.
Cheers! -
Just as an OT question semi-related. If say I were controlling a matrix switcher, and in netlinx I opened a client connection to it and sent it a command, but the switcher documentation recommended not to leave the connection open... how would it create a connection back to me, if it needed, to give me a status update, say from someone using the front panel buttons? Or is that not possible?
-
Just as an OT question semi-related. If say I were controlling a matrix switcher, and in netlinx I opened a client connection to it and sent it a command, but the switcher documentation recommended not to leave the connection open... how would it create a connection back to me, if it needed, to give me a status update, say from someone using the front panel buttons? Or is that not possible?
That would depend entirely on the switcher. And frankly it's highly unlikely that it has the capabilities.
If you do want feedback you'll have to make requests to the switcher and close the connection after doing so. -
Sockets Open and Close
Does AMX close sockets cleanly if say PowePoint crashed and didn't close it??
Is it better to have one socket open for the duration of the show or close and open on each slide.
Thanks
Ed -
If / when NetLinx detects a problem with the TCP/IP communication (i.e. cable's cut, powerpoint crashes, gremlins attack the network), it will close the socket and fire an OFFLINE event for the corresponding AMX Port (0:#:0)
(Note: You cannot guarantee this will happen immediately. In practice, it is usually people-time immediate... But it 'should' occur in a worst case scenario of approximately 30 seconds maximum.)
You will need to (unfortunately) keep track manually if the AMX Port is ON or OFF-line, you cannot query this state from AMX. -
Thanks for replying. I got this to work. I was wondering thou. With the iPCLink etc applications. They use the 1319 port first and I guess get the NetLinx box to open a port that way. Is this do able or do I have to have NetLinx open another port and just wait ? It seems silly to allocate resources to another port when there is one already doing the job ?
Thanks
Ed
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums