Skip to content
Snippets Groups Projects
Commit da4ee6b9 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Merge branch 'master' into 'master'

Show pump type in tooltip, show error code along the message

See merge request ics-software/ess-opis!228
parents 6a8dacdd 1430e285
No related branches found
No related tags found
No related merge requests found
......@@ -8,17 +8,17 @@ if PVUtil.getLong(pvs[0]):
code = PVUtil.getLong(pvs[1])
msgs = dict({
99 : "Controller Error (Hardware Error)",
98 : "Pressure Interlock",
97 : "Hardware Interlock",
96 : "Software Interlock",
95 : "Circuit Breaker Tripped",
49 : "Controller Error (Hardware Error) - Auto Reset",
48 : "Pressure Interlock - Auto Reset",
47 : "Hardware Interlock - Auto Reset",
46 : "Software Interlock - Auto Reset",
2 : 'Pump Disconnected - Auto Reset (for Primary Pump Controller Type "Hilko Spoelstra")',
1 : 'Local Control - Auto Reset (for Primary Pump Controller Type "Hilko Spoelstra")',
99 : "99 - Controller Error (Hardware Error)",
98 : "98 - Pressure Interlock",
97 : "97 - Hardware Interlock",
96 : "96 - Software Interlock",
95 : "95 - Circuit Breaker Tripped",
49 : "49 - Controller Error (Hardware Error) - Auto Reset",
48 : "48 - Pressure Interlock - Auto Reset",
47 : "47 - Hardware Interlock - Auto Reset",
46 : "46 - Software Interlock - Auto Reset",
2 : '2 - Pump Disconnected - Auto Reset (for Primary Pump Controller Type "ESS-VAC")',
1 : '1 - Local Control - Auto Reset (for Primary Pump Controller Type "ESS-VAC")',
0 : ""
})
......
......@@ -90,11 +90,12 @@
</action>
</actions>
<rules>
<rule name="Tooltip" prop_id="tooltip" out_exp="true">
<rule name="Type" prop_id="tooltip" out_exp="true">
<exp bool_exp="true">
<expression>pvStr0</expression>
<expression>pvStr0 + "\nType: " + pvStr1</expression>
</exp>
<pv_name>$(pv_name)</pv_name>
<pv_name>$(vacPREFIX):ControllerConfigR</pv_name>
</rule>
</rules>
<tooltip>$(pv_value)</tooltip>
......
......@@ -8,11 +8,11 @@ if PVUtil.getLong(pvs[0]):
code = PVUtil.getLong(pvs[1])
msgs = dict({
99 : "Pump Not Started",
98 : "Pump Starting Prevented by Tripped Interlock",
5 : "Pressure Interlock Bypassed",
4 : "Hardware Interlock Bypassed",
3 : "Software Interlock Bypassed",
99 : "99 - Pump Not Started",
98 : "98 - Pump Starting Prevented by Tripped Interlock",
5 : "5 - Pressure Interlock Bypassed",
4 : "4 - Hardware Interlock Bypassed",
3 : "3 - Software Interlock Bypassed",
0 : ""
})
......
......@@ -91,9 +91,10 @@
</actions>
<rules>
<rule name="Speed" prop_id="tooltip" out_exp="true">
<exp bool_exp="True">
<expression>pvStr0</expression>
<exp bool_exp="true">
<expression>pvStr0 + "\nSpeed: " + pvStr1</expression>
</exp>
<pv_name>$(pv_name)</pv_name>
<pv_name>$(CONTROLLER):SpdR</pv_name>
</rule>
</rules>
......
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