Question:
How can I stop tag count on a Counter Tag briefly?
Solution:
To do so, just set ResetCounterWhenEnabled property as False and, in the desired event, execute two scripts: one to disable tag’s Enable property, and then another one to enable it.
Example of a script (executed in a button on screen) to stop tag count:
Application.GetObject(“Data.CounterTag1”).Enabled = False
Example of a script (executed in a button on screen) to resume tag count:
Application.GetObject(“Data.CounterTag1”).Enabled = True
If for any reason ResetCounterWhenEnabled property is required to start set as True, the script to stop tag count will look like this:
Application.GetObject(“Data.CounterTag1”).ResetCounterWhenEnabled = False
Application.GetObject(“Data.CounterTag1”).Enabled = False
And the next script, to resume tag count, will look like this:
Application.GetObject(“Data.CounterTag1”).Enabled = True
Application.GetObject(“Data.CounterTag1”).ResetCounterWhenEnabled = True