Skip to content
Snippets Groups Projects
Commit ce334036 authored by Juliano Murari's avatar Juliano Murari
Browse files

Fix script to set Differential channel

parent 9ef114a2
No related branches found
No related tags found
No related merge requests found
Pipeline #152975 failed
...@@ -17,10 +17,9 @@ from org.csstudio.display.builder.runtime.script import PVUtil, ScriptUtil ...@@ -17,10 +17,9 @@ from org.csstudio.display.builder.runtime.script import PVUtil, ScriptUtil
# widget.setPropertyValue('text', PVUtil.getString(pvs[0])) # widget.setPropertyValue('text', PVUtil.getString(pvs[0]))
em01 = ScriptUtil.findWidgetByName(widget, 'Tabs') em01 = ScriptUtil.findWidgetByName(widget, 'Tabs')
Tab_index= em01.getPropertyValue('active_tab') tab_index= em01.getPropertyValue('active_tab')
pv_ch_val="DIFF "+str(Tab_index+1) pvs[0].setValue(tab_index)
pvs[0].setValue(pv_ch_val) pvs[2].setValue(tab_index)]]></text>
pvs[2].setValue(pv_ch_val)]]></text>
<pv_name trigger="false">$(P)$(R)PRB2-Channel</pv_name> <pv_name trigger="false">$(P)$(R)PRB2-Channel</pv_name>
<pv_name>$(P)$(R)PRB2-TR0-ArrayData</pv_name> <pv_name>$(P)$(R)PRB2-TR0-ArrayData</pv_name>
<pv_name trigger="false">$(P)$(R)PRB3-Channel</pv_name> <pv_name trigger="false">$(P)$(R)PRB3-Channel</pv_name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment