# Script used to read the Master OR width. # Orlando Soto, January 2014. from org.csstudio.opibuilder.scriptUtil import PVUtil pv0 = int(PVUtil.getDouble(pvs[0])*10) # Reading epics variable. pvs[1].setValue("%d (ns)" % pv0) # Writing into the input text widget variable. widget.setPropertyValue('tooltip','Actual width\n' + 'pv_name: ' + str(pvs[0].getName()) + '\n' + 'pv_value: ' + str(pvs[0].getValue())) # Updating the tooltip.