Get the system ID
lomeraniel
Junior Member
Is there any function in Netlinx Studio to obtain the own System ID number? I need that information for my program to compare the number with some others because I'm working with 60 masters together...
Thanks
Elena
Thanks
Elena
Comments
-
The system variable SYSTEM_NUMBER is supposed to contain this, though I must admit I've never used it.
-
The system variable SYSTEM_NUMBER will give you the system number of the master the code is running.
IF(SYSTEM_NUMBER = 3) { // do something if the system number is 3.... }Another applicationDEFINE_DEVICE dvMaster = 0:1:0 DEFINE_VARIABLE INTEGER nMySysNum = 3 // the system number the master should have DEFINE_EVENT DATA_EVENT[dvMaster] { ONLINE: { IF(SYSTEM_NUMBER <> nMySysNum) // if the current system number differs { SET_SYSTEM_NUMBER(nMySysNum) // set the new system number REBOOT(dvMaster) // reboot the system to take effect } } } -
SYSTEM_NUMBER does give it to you. I use it all the time.
-
System number
Thanks!
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