# Script used during developing. # Orlando Soto, January 2014. from org.csstudio.opibuilder.scriptUtil import PVUtil pv0 = int(PVUtil.getDouble(pvs[0])) if pv0 <> -1: pvs[1].setValue("# %d" % pv0) else: pvs[1].setValue("INF") widget.setPropertyValue('tooltip','Actual Number of pulses\n' + 'pv_name: ' + str(pvs[0].getName()) + '\n' + 'pv_value: ' + str(pvs[0].getValue()))