Hello All,
I'm looking to write a value to a checkbox PV (bi), based on the value of another checkbox PV. When I implement the pv_value rule, I get the warning that it won't write to the PV and would instead require me to call the "PV.setValue()" from the script. Not sure exactly how to do this as I haven't seen any real solid examples and typically this function is used with arrays. Any suggestions? The generated script looks like this:
####################################################
importPackage(Packages.org.csstudio.opibuilder.scriptUtil);
var pv0 = PVUtil.getDouble(pvs[0]);
if(pv0==1)
widget.setPropertyValue("pv_value",0);
else
widget.setPropertyValue("pv_value",null);
####################################################
Thanks,
-R