I have an event script that runs only in designer “play” mode. How can I get it to run all the time ?
I call a script every second when a window opens. This script reads some tags, manipulates the data and then puts it in dataset which is attached to a powerTable.
I accomplished this by attaching a custom property callled “clock” to the powerTable. This property is bound to the tag “[System]Client/System/CurrentDateTime” so it changes every second.
In the powerTable property change event I wrote:
if event.propertyName == ‘clock’:
#code to create a dataset here and write it to the power table property “Data”
This works great in runtime (click on play button in designer) but I want this to run even if the play button is not pressed, just like some components still work no matter what mode you are in (meter for example).
How can I do this ?