I use binary SNS version
of Phoebus and have two questions to consult you:
1) I want to display "OK" text in Text Update Widget according to pv1 value if it is not equal to zero. I write embedded python script for phoebus as follows:
# Embedded python Script
from org.csstudio.opibuilder.scriptUtil import PVUtil
pv0=PVUtil.getDouble(pvs[0])
pv1=PVUtil.getDouble(pvs[1])
if (pv1!=0):
widget.setPropertyValue("text","OK")
else:
widget.setPropertyValue("text",str(format(pv0,".3f")))
the above script works well for CSS, while for phoebus it doesn't update text content to "OK" if pv1 is not equal to zero. I have no idea what the problem of the script is.