# Script used during developing. # Orlando Soto, January 2014. from org.csstudio.opibuilder.scriptUtil import PVUtil, ConsoleUtil pv0 = PVUtil.getDouble(pvs[0]) if pv0 <> 0: period = 1/float(pv0)/10e-9 else: period = 1000000.0 pvs[1].setValue(round(period)) color = widget.getParent().getMacroValue("color") if color == "green": pvs[2].setValue(round(period))