Hi Everyone,
I am creating a module and ran into an issue where I may need to use synchronization. On some TagChangeListeners, Before I proceed with this implementation, I would like to understand how Ignition handles a runScript()
method call like this:
runScript("project.devices.getVTISDeviceStateColor(" + tag({Root Container.DeviceTagPath} + '/Status/Status') + "," + tag({Root Container.DeviceTagPath} + '/Faulted') + ")"))
The method needs both values to function correctly, and from what I can tell, it does. However, I am concerned about what happens if the tag()
method calls are out of sync. Does it just pass a -1
to my method? I have observed this behavior, but only after the initial call.
Can anyone explain how Ignition handles potential synchronization issues with runScript()
and tag()
method calls? Are there best practices to ensure both values are available before the method executes?