Hi,
I have a custom vb.net script set to run when certain devices change. The script needs to know which device(s) caused the script to run. Right now I'm loosely determining this by seeing how much time has elapsed between the script running and the devices' last change value. Unfortunately, the script doesn't seem to always run immediately after the device changes. I've currently recorded it taking anywhere from 0-12 seconds. I'm not sure why there is such a difference. Perhaps it is due to how much else is going on in the system at the time.
So, I'm looking for a more precise way to determine which devices or trigger groups cause the event to run. Can this information be determined via the API? Would strEventTriggerGroupData do anything for me? Any other ideas?
Thanks!
I have a custom vb.net script set to run when certain devices change. The script needs to know which device(s) caused the script to run. Right now I'm loosely determining this by seeing how much time has elapsed between the script running and the devices' last change value. Unfortunately, the script doesn't seem to always run immediately after the device changes. I've currently recorded it taking anywhere from 0-12 seconds. I'm not sure why there is such a difference. Perhaps it is due to how much else is going on in the system at the time.
So, I'm looking for a more precise way to determine which devices or trigger groups cause the event to run. Can this information be determined via the API? Would strEventTriggerGroupData do anything for me? Any other ideas?
Thanks!
Comment