# Script to read the delay of the Master Or register. # The script is triggered by changes in the reading epics variable and writes in a local variable. # Orlando Soto, February 2014. from org.csstudio.opibuilder.scriptUtil import PVUtil pv0 = int(PVUtil.getDouble(pvs[0])*10) # Getting value from epics variable. pvs[1].setValue("%d (ns)" % pv0) # Writing into the input text widget variable. widget.setPropertyValue('tooltip','Actual delay\n' + 'pv_name: ' + str(pvs[0].getName()) + '\n' + 'pv_value: ' + str(pvs[0].getValue())) # Setting the tooltip to reflect the PV name.