Skip to content

Commit f03eb0d

Browse files
committed
Added check for invalid frequencies
1 parent 5f458c4 commit f03eb0d

File tree

2 files changed

+58
-9
lines changed

2 files changed

+58
-9
lines changed

base/uk.ac.stfc.isis.ibex.opis/resources/astrium_choppers/astrium_choppers.opi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
<tooltip></tooltip>
173173
<visible>true</visible>
174174
<widget_type>Tabbed Container</widget_type>
175-
<width>661</width>
175+
<width>619</width>
176176
<wuid>1a3f5bca:1687651dcc1:-72de</wuid>
177177
<x>6</x>
178178
<y>78</y>
@@ -212,7 +212,7 @@
212212
<transparent>true</transparent>
213213
<visible>true</visible>
214214
<widget_type>Grouping Container</widget_type>
215-
<width>659</width>
215+
<width>617</width>
216216
<wuid>1a3f5bca:1687651dcc1:-72dd</wuid>
217217
<x>1</x>
218218
<y>1</y>
@@ -234,7 +234,7 @@
234234
<color name="ISIS_OPI_Foreground" red="192" green="192" blue="192" />
235235
</foreground_color>
236236
<group_name></group_name>
237-
<height>272</height>
237+
<height>290</height>
238238
<macros>
239239
<include_parent_macros>true</include_parent_macros>
240240
<PV_ROOT>$(P)$(ASTRIUM):CH1</PV_ROOT>
@@ -294,7 +294,7 @@
294294
<transparent>true</transparent>
295295
<visible>false</visible>
296296
<widget_type>Grouping Container</widget_type>
297-
<width>659</width>
297+
<width>617</width>
298298
<wuid>1a3f5bca:1687651dcc1:-72d9</wuid>
299299
<x>1</x>
300300
<y>1</y>
@@ -357,7 +357,7 @@
357357
<color name="ISIS_OPI_Foreground" red="192" green="192" blue="192" />
358358
</foreground_color>
359359
<group_name></group_name>
360-
<height>272</height>
360+
<height>290</height>
361361
<macros>
362362
<include_parent_macros>true</include_parent_macros>
363363
<PV_ROOT>$(P)$(ASTRIUM):CH2</PV_ROOT>
@@ -435,7 +435,7 @@ $(pv_value)</tooltip>
435435
<widget_type>Action Button</widget_type>
436436
<width>90</width>
437437
<wuid>1a3f5bca:1687651dcc1:-6fa0</wuid>
438-
<x>577</x>
438+
<x>535</x>
439439
<y>420</y>
440440
</widget>
441441
</display>

base/uk.ac.stfc.isis.ibex.opis/resources/astrium_choppers/single_chopper.opi

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,10 +872,10 @@ $(pv_value)</tooltip>
872872
<transparent>false</transparent>
873873
<visible>true</visible>
874874
<widget_type>Grouping Container</widget_type>
875-
<width>319</width>
875+
<width>277</width>
876876
<wuid>2f70796b:15b334751c5:-73ad</wuid>
877-
<x>276</x>
878-
<y>114</y>
877+
<x>0</x>
878+
<y>132</y>
879879
<widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
880880
<actions hook="false" hook_all="false" />
881881
<auto_size>false</auto_size>
@@ -1342,4 +1342,53 @@ $(pv_value)</tooltip>
13421342
<y>102</y>
13431343
</widget>
13441344
</widget>
1345+
<widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
1346+
<actions hook="false" hook_all="false" />
1347+
<auto_size>false</auto_size>
1348+
<background_color>
1349+
<color name="ISIS_Label_Background" red="240" green="240" blue="240" />
1350+
</background_color>
1351+
<border_color>
1352+
<color name="ISIS_Border" red="0" green="0" blue="0" />
1353+
</border_color>
1354+
<border_style>0</border_style>
1355+
<border_width>1</border_width>
1356+
<enabled>true</enabled>
1357+
<font>
1358+
<opifont.name fontName="Segoe UI" height="9" style="1" pixels="false">ISIS_Label_NEW</opifont.name>
1359+
</font>
1360+
<foreground_color>
1361+
<color name="Major" red="255" green="0" blue="0" />
1362+
</foreground_color>
1363+
<height>35</height>
1364+
<horizontal_alignment>0</horizontal_alignment>
1365+
<name>Label_2</name>
1366+
<rules>
1367+
<rule name="Disallowed Value" prop_id="visible" out_exp="false">
1368+
<exp bool_exp="pv0 != pv1">
1369+
<value>true</value>
1370+
</exp>
1371+
<pv trig="true">$(PV_ROOT):FREQ:SP</pv>
1372+
<pv trig="true">$(PV_ROOT):FREQ:SP_ACTUAL</pv>
1373+
</rule>
1374+
</rules>
1375+
<scale_options>
1376+
<width_scalable>true</width_scalable>
1377+
<height_scalable>true</height_scalable>
1378+
<keep_wh_ratio>false</keep_wh_ratio>
1379+
</scale_options>
1380+
<scripts />
1381+
<show_scrollbar>false</show_scrollbar>
1382+
<text>The specified frequency setpoint is not allowed for the device</text>
1383+
<tooltip></tooltip>
1384+
<transparent>false</transparent>
1385+
<vertical_alignment>1</vertical_alignment>
1386+
<visible>false</visible>
1387+
<widget_type>Label</widget_type>
1388+
<width>199</width>
1389+
<wrap_words>true</wrap_words>
1390+
<wuid>62e32fa0:16894c76a10:-7ea9</wuid>
1391+
<x>336</x>
1392+
<y>120</y>
1393+
</widget>
13451394
</display>

0 commit comments

Comments
 (0)