Tell if its NX or NI in program?
NZRob
Member
Anyone know if you can tell if its a NX or NI in the program as I want to program to use the serial fault detect if its NX or use my old way for an NI in a serial module?
Comments
-
The built in DEVICE_ID(<dev>) function sounds like what you are seeking. In PI, you can find the device ID for your product and in code, use the function to evaluate the device.
http://www.amx.com/assets/AMX-PI2/amx-pi2.htm
NX Master DEVICE ID: 0x018D or 0x1B7 -
DEVICE_ID_STRING (0:1:0) works nicely too if you'd like an ASCII return. Look for NI or NX in the return string.
-
Thanks guys that worked well - String to NI pops up with 'NI Master' and guessing that a NX will pop up 'NX Master'. Will have to find one to test on and then serial test on.
Short version within serial module:DEFINE_VARIABLE VOLATILE INTEGER bIs_NI = TRUE; DEFINE_EVENT DATA_EVENT [dvThisDevice] { ONLINE: { WAIT 100 { IF(FIND_STRING(DEVICE_ID_STRING(0:1:0),'NX',1)) bIs_NI = FALSE; } } }
Then just using bIs_NI is code for NI or NX control
Leave a Comment
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