Skip to content
Snippets Groups Projects
Commit ab198323 authored by Krisztián Löki's avatar Krisztián Löki
Browse files

Added VEPI faceplate

parent bd224289
No related branches found
No related tags found
No related merge requests found
from org.csstudio.display.builder.runtime.script import ScriptUtil
from org.csstudio.display.builder.runtime.pv import PVFactory
path = "../../vpi/Faceplate/vac_digitelqpce_vpi.bob"
macros = widget.getEffectiveMacros()
macros.expandValues(macros)
devicename = macros.getValue("DEVICENAME")
ch = macros.getValue("CH")
try:
pumpPV = PVFactory.getPV("{}:Ch{}_DevNameR".format(devicename, ch))
pump = pumpPV.read()
PVFactory.releasePV(pumpPV)
pump = pump.value
dmacros = dict()
for k in macros.getNames():
dmacros[k] = macros.getValue(k)
dmacros["CONTROLLER"] = devicename
dmacros["DEVICENAME"] = pump
ScriptUtil.openDisplay(widget, path, "STANDALONE", dmacros)
except Exception as e:
ScriptUtil.getLogger().severe(str(e))
......@@ -99,11 +99,11 @@
<name>Controller Detailed</name>
<actions>
<action type="open_display">
<file>../vepi/Faceplate/vac_ctrl_digitelqpce_controller.bob</file>
<file>../../vepi/Faceplate/vac_ctrl_digitelqpce_controller.bob</file>
<macros>
<DEVICENAME>$(CONTROLLER)</DEVICENAME>
</macros>
<target>standalone</target>
<target>window</target>
<description>Open Controller Screen</description>
</action>
</actions>
......
......@@ -69,7 +69,7 @@
<name>$(DEV)-$(IDX)</name>
<macros>
<DEV>VEPI</DEV>
<FACEPLATE_PATH>$(DIAG_WIDGET_ROOT)/vepi/Faceplate/vac_ctrl_digitalqpce.bob</FACEPLATE_PATH>
<FACEPLATE_PATH>$(DIAG_WIDGET_ROOT)/vepi/Faceplate/vac_ctrl_digitelqpce_controller.bob</FACEPLATE_PATH>
<IDX>10001</IDX>
</macros>
<file>$(DIAG_WIDGET_ROOT)/diagnostics/vac_ctrl-veg-vept.bob</file>
......@@ -84,7 +84,7 @@
<name>$(DEV)-$(IDX)</name>
<macros>
<DEV>VEPI</DEV>
<FACEPLATE_PATH>$(DIAG_WIDGET_ROOT)/vepi/Faceplate/vac_ctrl_digitalqpce.bob</FACEPLATE_PATH>
<FACEPLATE_PATH>$(DIAG_WIDGET_ROOT)/vepi/Faceplate/vac_ctrl_digitelqpce_controller.bob</FACEPLATE_PATH>
<IDX>20001</IDX>
</macros>
<file>$(DIAG_WIDGET_ROOT)/diagnostics/vac_ctrl-veg-vept.bob</file>
......
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