# Selection of the bit for the LED widget. # Orlando Soto, March 2014. from org.csstudio.opibuilder.scriptUtil import PVUtil chann = widget.getParent().getMacroValue("chann") # Getting value of channel monitoring. widget.setPropertyValue("bit",int(chann) - 32) # Setting the bit property for the LED widget.