I want to add up a variable by 1 each time when PV are triggered and print the result in CSS terminal.
I try to define a variable x in python script as the following lines:
from org.csstudio.opibuilder.scriptUtil import PVUtil
However, the results in CSS terminal are always print 1. And not 2, 3, 4, 5, 6, ....each time that I hope.
I have no idea how to define a global variable and a global array in python script
for a widget of Control system studio (CSS), so that I can preserve the data each time.
Any help will be appreciated and thanks in advance !