diff --git a/NON-APPROVED/TS2/ts2-cryomodule/cabtr/cabtr_te.bob b/NON-APPROVED/TS2/ts2-cryomodule/cabtr/cabtr_te.bob index ae297060853954c6dfcdd4f1613001c0210aaf92..1d938037469e2371393b9757d4895f55b775557c 100644 --- a/NON-APPROVED/TS2/ts2-cryomodule/cabtr/cabtr_te.bob +++ b/NON-APPROVED/TS2/ts2-cryomodule/cabtr/cabtr_te.bob @@ -2,7 +2,7 @@ <display version="2.0.0"> <name>$(DEVICE)</name> <width>705</width> - <height>422</height> + <height>522</height> <widget type="label" version="2.0.0"> <name>TE on CABTR</name> <text>$(DEVICE)</text> @@ -221,245 +221,417 @@ <vertical_alignment>1</vertical_alignment> </widget> </widget> - <widget type="label" version="2.0.0"> - <name>Channel Name</name> - <text>Channel Name:</text> - <y>270</y> - <width>110</width> + <widget type="textupdate" version="2.0.0"> + <name>StatR</name> + <pv_name>$(DEVICE):StatR</pv_name> + <x>590</x> + <y>90</y> + <width>105</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> - <widget type="textentry" version="3.0.0"> - <name>NameS</name> - <pv_name>$(DEVICE):NameS</pv_name> - <x>116</x> - <y>270</y> - <width>160</width> - </widget> <widget type="textupdate" version="2.0.0"> - <name>Name-RB</name> - <pv_name>$(DEVICE):Name-RB</pv_name> - <x>282</x> - <y>270</y> - <width>150</width> + <name>Sensor State</name> + <pv_name>$(DEVICE):SensorStatR</pv_name> + <x>590</x> + <y>120</y> + <width>105</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> - <widget type="checkbox" version="2.0.0"> - <name>Modify Channel Name</name> - <pv_name>$(DEVICE):ModNameCmd</pv_name> - <label>Modify Channel Name</label> - <x>443</x> - <y>270</y> - <width>200</width> - <actions> - </actions> - <tooltip>Controls if the name will be modified -$(pv_name) -$(pv_value)</tooltip> - <show_confirm_dialog>false</show_confirm_dialog> - </widget> <widget type="label" version="2.0.0"> - <name>Curve Name</name> - <text>Curve Name:</text> - <y>300</y> - <width>110</width> + <name>Channel State</name> + <text>Channel State:</text> + <x>479</x> + <y>90</y> + <width>105</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> - <widget type="combo" version="2.0.0"> - <name>CurveFileS</name> - <pv_name>$(DEVICE):CurveFileS</pv_name> - <x>116</x> - <y>300</y> - <width>160</width> - <height>20</height> - <background_color> - <color name="Write_Background" red="224" green="217" blue="202"> - </color> - </background_color> - <actions> - <action type="write_pv"> - <pv_name>$(CONTROLLER):CalibRereadCmd</pv_name> - <value>1</value> - <description>Reread calibration files list</description> - </action> - </actions> - <scripts> - <script file="fill_calib_files.py"> - <pv_name>$(CONTROLLER):CalibFiles-RB</pv_name> - </script> - </scripts> - <items_from_pv>false</items_from_pv> - </widget> - <widget type="textupdate" version="2.0.0"> - <name>CurveFile-RB</name> - <pv_name>$(DEVICE):CurveFile-RB</pv_name> - <x>282</x> - <y>300</y> - <width>150</width> + <widget type="label" version="2.0.0"> + <name>Sensor State</name> + <text>Sensor State:</text> + <x>479</x> + <y>120</y> + <width>105</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> - <widget type="checkbox" version="2.0.0"> - <name>Modify Curve Name</name> - <pv_name>$(DEVICE):ModCurveCmd</pv_name> - <label>Modify Calibration Curve</label> - <x>443</x> - <y>300</y> - <width>200</width> - <actions> - </actions> - <tooltip>Controls if the calibration curve will be modified -$(pv_name) -$(pv_value)</tooltip> - <show_confirm_dialog>false</show_confirm_dialog> - </widget> <widget type="label" version="2.0.0"> - <name>Curve Mode</name> - <text>Curve Mode:</text> - <y>330</y> - <width>110</width> + <name>Temperature</name> + <text>Temperature:</text> + <x>479</x> + <y>150</y> + <width>105</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> <widget type="textupdate" version="2.0.0"> - <name>CurveModeR</name> - <pv_name>$(DEVICE):CurveModeR</pv_name> - <x>282</x> - <y>330</y> - <width>150</width> + <name>TempR</name> + <pv_name>$(DEVICE):TempR</pv_name> + <x>590</x> + <y>150</y> + <width>105</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> <widget type="label" version="2.0.0"> - <name>Lower Limit</name> - <text>Lower Limit:</text> - <y>360</y> - <width>110</width> + <name>Resistance</name> + <text>Resistance:</text> + <x>479</x> + <y>180</y> + <width>105</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> - <tooltip>Lower limit for temperature conversion</tooltip> </widget> <widget type="textupdate" version="2.0.0"> - <name>TempConvLowR</name> - <pv_name>$(DEVICE):TempConvLowR</pv_name> - <x>282</x> - <y>360</y> - <width>150</width> + <name>ResisR</name> + <pv_name>$(DEVICE):ResisR</pv_name> + <x>590</x> + <y>180</y> + <width>105</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> - <widget type="label" version="2.0.0"> - <name>Upper Limit</name> - <text>Upper Limit:</text> - <y>390</y> - <width>110</width> + <widget type="textupdate" version="2.0.0"> + <name>NameR</name> + <pv_name>$(DEVICE):NameR</pv_name> + <x>186</x> + <y>460</y> + <width>170</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> - <tooltip>Upper limit for temperature conversion</tooltip> </widget> <widget type="textupdate" version="2.0.0"> - <name>TempConvHighR</name> - <pv_name>$(DEVICE):TempConvHighR</pv_name> - <x>282</x> - <y>392</y> - <width>150</width> + <name>CurveFileR</name> + <pv_name>$(DEVICE):CurveFileR</pv_name> + <x>186</x> + <y>488</y> + <width>170</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> - <widget type="label" version="2.0.0"> - <name>Commit Needed</name> - <text>The changes need to be commited with the 'Commit Channels' button (on the main page)</text> - <x>443</x> - <y>330</y> - <width>250</width> - <height>82</height> + <widget type="multi_state_led" version="2.0.0"> + <name>Name Mismatch</name> + <pv_name>$(DEVICE):NameMismatchR</pv_name> + <x>479</x> + <y>216</y> + <width>105</width> + <height>25</height> <font> <font name="Default Bold" family="Source Sans Pro" style="BOLD" size="16.0"> </font> </font> - <background_color> - <color name="Attention" red="252" green="242" blue="17"> + <foreground_color> + <color name="WHITE" red="255" green="255" blue="255"> </color> - </background_color> - <transparent>false</transparent> - <horizontal_alignment>1</horizontal_alignment> - <vertical_alignment>1</vertical_alignment> + </foreground_color> + <square>true</square> <rules> - <rule name="Visibility" prop_id="visible" out_exp="false"> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + <rule name="Font Style" prop_id="font" out_exp="false"> <exp bool_exp="pvInt0 == 0"> - <value>false</value> + <value> + <font name="Default" family="Source Sans Pro" style="REGULAR" size="16.0"> + </font> + </value> </exp> - <pv_name>$(DEVICE):CommitNeededR</pv_name> + <pv_name>$(pv_name)</pv_name> </rule> </rules> + <states> + <state> + <value>0</value> + <label>Name</label> + <color> + <color name="Background" red="220" green="225" blue="221"> + </color> + </color> + </state> + <state> + <value>1</value> + <label>Name</label> + <color> + <color name="LED-YELLOW-ON" red="255" green="235" blue="17"> + </color> + </color> + </state> + <state> + <value>2</value> + <label>Name</label> + <color> + <color name="LED-RED-ON" red="255" green="60" blue="46"> + </color> + </color> + </state> + </states> + <fallback_label>Name</fallback_label> </widget> - <widget type="textupdate" version="2.0.0"> - <name>StatR</name> - <pv_name>$(DEVICE):StatR</pv_name> - <x>590</x> - <y>106</y> - <width>105</width> - <horizontal_alignment>2</horizontal_alignment> - <vertical_alignment>1</vertical_alignment> - </widget> - <widget type="textupdate" version="2.0.0"> - <name>Sensor State</name> - <pv_name>$(DEVICE):SensorStatR</pv_name> + <widget type="multi_state_led" version="2.0.0"> + <name>Curve Mismatch</name> + <pv_name>$(DEVICE):CurveFileMismatchR</pv_name> <x>590</x> - <y>136</y> + <y>216</y> <width>105</width> - <horizontal_alignment>2</horizontal_alignment> - <vertical_alignment>1</vertical_alignment> - </widget> - <widget type="label" version="2.0.0"> - <name>Channel State</name> - <text>Channel State:</text> - <x>484</x> - <y>106</y> - <horizontal_alignment>2</horizontal_alignment> - <vertical_alignment>1</vertical_alignment> + <height>25</height> + <font> + <font name="Default Bold" family="Source Sans Pro" style="BOLD" size="16.0"> + </font> + </font> + <foreground_color> + <color name="WHITE" red="255" green="255" blue="255"> + </color> + </foreground_color> + <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + <rule name="Font Style" prop_id="font" out_exp="false"> + <exp bool_exp="pvInt0 == 0"> + <value> + <font name="Default" family="Source Sans Pro" style="REGULAR" size="16.0"> + </font> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> + <states> + <state> + <value>0</value> + <label>Curve</label> + <color> + <color name="Background" red="220" green="225" blue="221"> + </color> + </color> + </state> + <state> + <value>1</value> + <label>Curve</label> + <color> + <color name="LED-YELLOW-ON" red="255" green="235" blue="17"> + </color> + </color> + </state> + <state> + <value>2</value> + <label>Curve</label> + <color> + <color name="LED-RED-ON" red="255" green="60" blue="46"> + </color> + </color> + </state> + </states> + <fallback_label>Curve</fallback_label> </widget> - <widget type="label" version="2.0.0"> - <name>Sensor State</name> - <text>Sensor State:</text> - <x>484</x> - <y>136</y> - <horizontal_alignment>2</horizontal_alignment> - <vertical_alignment>1</vertical_alignment> + <widget type="group" version="2.0.0"> + <name>Channel Setup</name> + <y>257</y> + <width>685</width> + <height>184</height> + <transparent>true</transparent> + <widget type="label" version="2.0.0"> + <name>Channel Name</name> + <text>Channel Name:</text> + <width>110</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + </widget> + <widget type="textentry" version="3.0.0"> + <name>NameS</name> + <pv_name>$(DEVICE):NameS</pv_name> + <x>116</x> + <width>160</width> + </widget> + <widget type="textupdate" version="2.0.0"> + <name>Name-RB</name> + <pv_name>$(DEVICE):Name-RB</pv_name> + <x>282</x> + <width>150</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + </widget> + <widget type="checkbox" version="2.0.0"> + <name>Modify Channel Name</name> + <pv_name>$(DEVICE):ModNameCmd</pv_name> + <label>Modify Channel Name</label> + <x>443</x> + <width>200</width> + <actions> + </actions> + <tooltip>Controls if the name will be modified +$(pv_name) +$(pv_value)</tooltip> + <show_confirm_dialog>false</show_confirm_dialog> + </widget> + <widget type="label" version="2.0.0"> + <name>Curve Name</name> + <text>Curve Name:</text> + <y>30</y> + <width>110</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + </widget> + <widget type="combo" version="2.0.0"> + <name>CurveFileS</name> + <pv_name>$(DEVICE):CurveFileS</pv_name> + <x>116</x> + <y>30</y> + <width>160</width> + <height>20</height> + <background_color> + <color name="Write_Background" red="224" green="217" blue="202"> + </color> + </background_color> + <actions> + <action type="write_pv"> + <pv_name>$(CONTROLLER):CalibRereadCmd</pv_name> + <value>1</value> + <description>Reread calibration files list</description> + </action> + </actions> + <scripts> + <script file="fill_calib_files.py"> + <pv_name>$(CONTROLLER):CalibFiles-RB</pv_name> + </script> + </scripts> + <items_from_pv>false</items_from_pv> + </widget> + <widget type="textupdate" version="2.0.0"> + <name>CurveFile-RB</name> + <pv_name>$(DEVICE):CurveFile-RB</pv_name> + <x>282</x> + <y>30</y> + <width>150</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + </widget> + <widget type="checkbox" version="2.0.0"> + <name>Modify Curve Name</name> + <pv_name>$(DEVICE):ModCurveCmd</pv_name> + <label>Modify Calibration Curve</label> + <x>443</x> + <y>30</y> + <width>200</width> + <actions> + </actions> + <tooltip>Controls if the calibration curve will be modified +$(pv_name) +$(pv_value)</tooltip> + <show_confirm_dialog>false</show_confirm_dialog> + </widget> + <widget type="label" version="2.0.0"> + <name>Curve Mode</name> + <text>Curve Mode:</text> + <y>60</y> + <width>110</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + </widget> + <widget type="textupdate" version="2.0.0"> + <name>CurveModeR</name> + <pv_name>$(DEVICE):CurveModeR</pv_name> + <x>282</x> + <y>60</y> + <width>150</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + </widget> + <widget type="label" version="2.0.0"> + <name>Lower Limit</name> + <text>Lower Limit:</text> + <y>90</y> + <width>110</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + <tooltip>Lower limit for temperature conversion</tooltip> + </widget> + <widget type="textupdate" version="2.0.0"> + <name>TempConvLowR</name> + <pv_name>$(DEVICE):TempConvLowR</pv_name> + <x>282</x> + <y>90</y> + <width>150</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + </widget> + <widget type="label" version="2.0.0"> + <name>Upper Limit</name> + <text>Upper Limit:</text> + <y>120</y> + <width>110</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + <tooltip>Upper limit for temperature conversion</tooltip> + </widget> + <widget type="textupdate" version="2.0.0"> + <name>TempConvHighR</name> + <pv_name>$(DEVICE):TempConvHighR</pv_name> + <x>282</x> + <y>122</y> + <width>150</width> + <horizontal_alignment>2</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + </widget> + <widget type="label" version="2.0.0"> + <name>Commit Needed</name> + <text>The changes need to be commited</text> + <x>443</x> + <y>60</y> + <width>200</width> + <height>82</height> + <font> + <font name="Default Bold" family="Source Sans Pro" style="BOLD" size="16.0"> + </font> + </font> + <background_color> + <color name="Attention" red="252" green="242" blue="17"> + </color> + </background_color> + <transparent>false</transparent> + <horizontal_alignment>1</horizontal_alignment> + <vertical_alignment>1</vertical_alignment> + <rules> + <rule name="Visibility" prop_id="visible" out_exp="false"> + <exp bool_exp="pvInt0 == 0"> + <value>false</value> + </exp> + <pv_name>$(DEVICE):CommitNeededR</pv_name> + </rule> + </rules> + <tooltip>The changes need to be commited with the 'Commit Channels' button (on the main page)</tooltip> + </widget> </widget> <widget type="label" version="2.0.0"> - <name>Temperature</name> - <text>Temperature:</text> - <x>484</x> - <y>166</y> - <horizontal_alignment>2</horizontal_alignment> - <vertical_alignment>1</vertical_alignment> - </widget> - <widget type="textupdate" version="2.0.0"> - <name>TempR</name> - <pv_name>$(DEVICE):TempR</pv_name> - <x>590</x> - <y>166</y> - <width>105</width> + <name>Effective Channel Name</name> + <text>Effective Channel Name:</text> + <x>10</x> + <y>460</y> + <width>170</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> <widget type="label" version="2.0.0"> - <name>Resistance</name> - <text>Resistance:</text> - <x>484</x> - <y>196</y> - <horizontal_alignment>2</horizontal_alignment> - <vertical_alignment>1</vertical_alignment> - </widget> - <widget type="textupdate" version="2.0.0"> - <name>ResisR</name> - <pv_name>$(DEVICE):ResisR</pv_name> - <x>590</x> - <y>196</y> - <width>105</width> + <name>Effective Curve Name</name> + <text>Effective Curve Name:</text> + <x>10</x> + <y>488</y> + <width>170</width> <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> diff --git a/NON-APPROVED/TS2/ts2-cryomodule/cabtr/channel_mismatch.bob b/NON-APPROVED/TS2/ts2-cryomodule/cabtr/channel_mismatch.bob index 98aa31fd04e5bb6f23758f9e2ebb206ff3ce28c3..54b53521ab4ec5cbd9eebefd012ed97bcfa06c9e 100644 --- a/NON-APPROVED/TS2/ts2-cryomodule/cabtr/channel_mismatch.bob +++ b/NON-APPROVED/TS2/ts2-cryomodule/cabtr/channel_mismatch.bob @@ -19,6 +19,17 @@ </color> </foreground_color> <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> <states> <state> <value>0</value> @@ -45,6 +56,7 @@ </color> </state> </states> + <fallback_label>8</fallback_label> </widget> <widget type="multi_state_led" version="2.0.0"> <name>CH7</name> @@ -62,6 +74,17 @@ </color> </foreground_color> <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> <states> <state> <value>0</value> @@ -88,6 +111,7 @@ </color> </state> </states> + <fallback_label>7</fallback_label> </widget> <widget type="multi_state_led" version="2.0.0"> <name>CH6</name> @@ -105,6 +129,17 @@ </color> </foreground_color> <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> <states> <state> <value>0</value> @@ -131,6 +166,7 @@ </color> </state> </states> + <fallback_label>6</fallback_label> </widget> <widget type="multi_state_led" version="2.0.0"> <name>CH5</name> @@ -148,6 +184,17 @@ </color> </foreground_color> <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> <states> <state> <value>0</value> @@ -174,6 +221,7 @@ </color> </state> </states> + <fallback_label>5</fallback_label> </widget> <widget type="multi_state_led" version="2.0.0"> <name>CH4</name> @@ -191,6 +239,17 @@ </color> </foreground_color> <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> <states> <state> <value>0</value> @@ -217,6 +276,7 @@ </color> </state> </states> + <fallback_label>4</fallback_label> </widget> <widget type="multi_state_led" version="2.0.0"> <name>CH3</name> @@ -234,6 +294,17 @@ </color> </foreground_color> <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> <states> <state> <value>0</value> @@ -260,6 +331,7 @@ </color> </state> </states> + <fallback_label>3</fallback_label> </widget> <widget type="multi_state_led" version="2.0.0"> <name>CH2</name> @@ -277,6 +349,17 @@ </color> </foreground_color> <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> <states> <state> <value>0</value> @@ -303,6 +386,7 @@ </color> </state> </states> + <fallback_label>2</fallback_label> </widget> <widget type="multi_state_led" version="2.0.0"> <name>CH1</name> @@ -320,6 +404,17 @@ </color> </foreground_color> <square>true</square> + <rules> + <rule name="Font color" prop_id="foreground_color" out_exp="false"> + <exp bool_exp="pvInt0 <= 1"> + <value> + <color name="TEXT" red="25" green="25" blue="25"> + </color> + </value> + </exp> + <pv_name>$(pv_name)</pv_name> + </rule> + </rules> <states> <state> <value>0</value> @@ -346,5 +441,6 @@ </color> </state> </states> + <fallback_label>1</fallback_label> </widget> </display>