Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cryvisil/tilt-control.bob
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
624 lines (623 sloc)
18 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<display version="2.0.0"> | |
<name>TILT CONTROL</name> | |
<width>650</width> | |
<height>550</height> | |
<widget type="label" version="2.0.0"> | |
<name>Label</name> | |
<class>TITLE</class> | |
<text>Tilt Control</text> | |
<x use_class="true">0</x> | |
<y use_class="true">0</y> | |
<width>320</width> | |
<height>31</height> | |
<font use_class="true"> | |
<font name="Header 1" family="Liberation Sans" style="BOLD" size="22.0"> | |
</font> | |
</font> | |
<foreground_color use_class="true"> | |
<color name="Text" red="0" green="0" blue="0"> | |
</color> | |
</foreground_color> | |
<transparent use_class="true">true</transparent> | |
<horizontal_alignment>1</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
</widget> | |
<widget type="scrollbar" version="2.0.0"> | |
<name>Scrollbar_1</name> | |
<pv_name>$(P):AWG0:AmpZ:Offset</pv_name> | |
<x>100</x> | |
<y>140</y> | |
<limits_from_pv>true</limits_from_pv> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="scrollbar" version="2.0.0"> | |
<name>Scrollbar_2</name> | |
<pv_name>$(P):AWG0:AmpY:Offset</pv_name> | |
<x>100</x> | |
<y>110</y> | |
<limits_from_pv>true</limits_from_pv> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_45</name> | |
<text>Label Text</text> | |
<x>10</x> | |
<y>50</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpW:Offset.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_46</name> | |
<text>Label Text</text> | |
<x>10</x> | |
<y>80</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpX:Offset.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_47</name> | |
<text>Label Text</text> | |
<x>10</x> | |
<y>110</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpY:Offset.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_48</name> | |
<text>Label Text</text> | |
<x>10</x> | |
<y>140</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpZ:Offset.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="textupdate" version="2.0.0"> | |
<name>TextUpdate_29</name> | |
<pv_name>$(P):AWG0:AmpW:Offset</pv_name> | |
<x>130</x> | |
<y>345</y> | |
<transparent>true</transparent> | |
<format>1</format> | |
<precision>4</precision> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<actions> | |
</actions> | |
<border_width>1</border_width> | |
</widget> | |
<widget type="textupdate" version="2.0.0"> | |
<name>TextUpdate_30</name> | |
<pv_name>$(P):AWG0:AmpX:Offset</pv_name> | |
<x>420</x> | |
<y>345</y> | |
<transparent>true</transparent> | |
<format>1</format> | |
<precision>4</precision> | |
<vertical_alignment>1</vertical_alignment> | |
<actions> | |
</actions> | |
<border_width>1</border_width> | |
</widget> | |
<widget type="textupdate" version="2.0.0"> | |
<name>TextUpdate_31</name> | |
<pv_name>$(P):AWG0:AmpY:Offset</pv_name> | |
<x>273</x> | |
<y>239</y> | |
<transparent>true</transparent> | |
<format>1</format> | |
<precision>4</precision> | |
<horizontal_alignment>1</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<actions> | |
</actions> | |
<border_width>1</border_width> | |
</widget> | |
<widget type="textupdate" version="2.0.0"> | |
<name>TextUpdate_32</name> | |
<pv_name>$(P):AWG0:AmpZ:Offset</pv_name> | |
<x>273</x> | |
<y>449</y> | |
<transparent>true</transparent> | |
<format>1</format> | |
<precision>4</precision> | |
<horizontal_alignment>1</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<actions> | |
</actions> | |
<border_width>1</border_width> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_71</name> | |
<text>Label Text</text> | |
<x>130</x> | |
<y>329</y> | |
<horizontal_alignment>1</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpW:Offset.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_72</name> | |
<text>Label Text</text> | |
<x>420</x> | |
<y>329</y> | |
<horizontal_alignment>1</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpX:Offset.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_73</name> | |
<text>Label Text</text> | |
<x>273</x> | |
<y>220</y> | |
<horizontal_alignment>1</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpY:Offset.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_74</name> | |
<text>Label Text</text> | |
<x>273</x> | |
<y>469</y> | |
<horizontal_alignment>1</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpZ:Offset.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_25</name> | |
<pv_name>$(P):AWG0:AmpW:Offset</pv_name> | |
<x>210</x> | |
<y>50</y> | |
<precision>3</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_26</name> | |
<pv_name>$(P):AWG0:AmpX:Offset</pv_name> | |
<x>210</x> | |
<y>80</y> | |
<precision>3</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_27</name> | |
<pv_name>$(P):AWG0:AmpY:Offset</pv_name> | |
<x>210</x> | |
<y>110</y> | |
<precision>3</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_28</name> | |
<pv_name>$(P):AWG0:AmpZ:Offset</pv_name> | |
<x>210</x> | |
<y>140</y> | |
<precision>3</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="scrollbar" version="2.0.0"> | |
<name>Scrollbar_3</name> | |
<pv_name>$(P):AWG0:AmpX:Offset</pv_name> | |
<x>100</x> | |
<y>80</y> | |
<limits_from_pv>true</limits_from_pv> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="scrollbar" version="2.0.0"> | |
<name>Scrollbar</name> | |
<pv_name>$(P):AWG0:AmpW:Offset</pv_name> | |
<x>100</x> | |
<y>50</y> | |
<limits_from_pv>true</limits_from_pv> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="ellipse" version="2.0.0"> | |
<name>Ellipse_1</name> | |
<x>240</x> | |
<y>270</y> | |
<width>170</width> | |
<height>170</height> | |
<line_color> | |
<color red="128" green="179" blue="179" alpha="160"> | |
</color> | |
</line_color> | |
<background_color> | |
<color red="255" green="255" blue="255" alpha="0"> | |
</color> | |
</background_color> | |
</widget> | |
<widget type="polyline" version="2.0.0"> | |
<name>Polyline</name> | |
<x>770</x> | |
<y>510</y> | |
</widget> | |
<widget type="rectangle" version="2.0.0"> | |
<name>Rectangle</name> | |
<x>236</x> | |
<y>353</y> | |
<width>180</width> | |
<height>2</height> | |
<line_width>0</line_width> | |
<background_color> | |
<color red="128" green="179" blue="179"> | |
</color> | |
</background_color> | |
</widget> | |
<widget type="rectangle" version="2.0.0"> | |
<name>Rectangle_1</name> | |
<x>324</x> | |
<y>265</y> | |
<width>2</width> | |
<height>180</height> | |
<line_width>0</line_width> | |
<background_color> | |
<color red="128" green="179" blue="179"> | |
</color> | |
</background_color> | |
</widget> | |
<widget type="ellipse" version="2.0.0"> | |
<name>Ellipse</name> | |
<x>300</x> | |
<y>330</y> | |
<width>50</width> | |
<line_width>0</line_width> | |
<background_color> | |
<color red="77" green="128" blue="128"> | |
</color> | |
</background_color> | |
<rules> | |
<rule name="x offset" prop_id="x" out_exp="true"> | |
<exp bool_exp="pv0||pv1||pv2"> | |
<expression>(300-(pv0-pv1)*6)-(pv2*6)/2</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpW:Offset</pv_name> | |
<pv_name>$(P):AWG0:AmpX:Offset</pv_name> | |
<pv_name>$(P):AWG0:Amp0:Amplitude</pv_name> | |
</rule> | |
<rule name="y offset" prop_id="y" out_exp="true"> | |
<exp bool_exp="pv0||pv1||pv2"> | |
<expression>(330-(pv0-pv1)*6)-(pv2*6)/2</expression> | |
</exp> | |
<pv_name>$(P):AWG0:AmpY:Offset</pv_name> | |
<pv_name>$(P):AWG0:AmpZ:Offset</pv_name> | |
<pv_name>$(P):AWG0:Amp0:Amplitude</pv_name> | |
</rule> | |
<rule name="amp-height" prop_id="height" out_exp="true"> | |
<exp bool_exp="pv0"> | |
<expression>50+pv0*6</expression> | |
</exp> | |
<pv_name>$(P):AWG0:Amp0:Amplitude</pv_name> | |
</rule> | |
<rule name="amp-width" prop_id="width" out_exp="true"> | |
<exp bool_exp="pv0"> | |
<expression>50+pv0*6</expression> | |
</exp> | |
<pv_name>$(P):AWG0:Amp0:Amplitude</pv_name> | |
</rule> | |
<rule name="freq-color" prop_id="background_color" out_exp="true"> | |
<exp bool_exp="pv0"> | |
<expression>WidgetColor(200, 128, 128, (pvInt0/25)+50)</expression> | |
</exp> | |
<pv_name>$(P):AWG0:DDSB:SetDDSFreq</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="scrollbar" version="2.0.0"> | |
<name>Scrollbar_4</name> | |
<pv_name>$(P):AWG0:Amp3:Amplitude</pv_name> | |
<x>410</x> | |
<y>140</y> | |
<limits_from_pv>true</limits_from_pv> | |
<increment>0.1</increment> | |
<enabled>false</enabled> | |
</widget> | |
<widget type="scrollbar" version="2.0.0"> | |
<name>Scrollbar_5</name> | |
<pv_name>$(P):AWG0:Amp2:Amplitude</pv_name> | |
<x>410</x> | |
<y>110</y> | |
<limits_from_pv>true</limits_from_pv> | |
<increment>0.1</increment> | |
<enabled>false</enabled> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_50</name> | |
<text>Label Text</text> | |
<x>320</x> | |
<y>80</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:Amp1:Amplitude.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_51</name> | |
<text>Label Text</text> | |
<x>320</x> | |
<y>110</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:Amp2:Amplitude.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_52</name> | |
<text>Label Text</text> | |
<x>320</x> | |
<y>140</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:Amp3:Amplitude.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_33</name> | |
<pv_name>$(P):AWG0:Amp0:Amplitude</pv_name> | |
<x>520</x> | |
<y>50</y> | |
<precision>3</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<scripts> | |
<script file="EmbeddedJs"> | |
<text><![CDATA[/* Embedded javascript */ | |
PVUtil = org.csstudio.display.builder.runtime.script.PVUtil; | |
logger = org.csstudio.display.builder.runtime.script.ScriptUtil.getLogger(); | |
logger.info("Hello"); | |
/* widget.setPropertyValue("text", PVUtil.getString(pvs[0])); */ | |
PVUtil.writePV(pvs[1], PVUtil.getDouble(pvs[0]), 100); | |
PVUtil.writePV(pvs[2], PVUtil.getDouble(pvs[0]), 100); | |
PVUtil.writePV(pvs[3], PVUtil.getDouble(pvs[0]), 100);]]></text> | |
<pv_name>$(P):AWG0:Amp0:Amplitude</pv_name> | |
<pv_name trigger="false">$(P):AWG0:Amp1:Amplitude</pv_name> | |
<pv_name trigger="false">$(P):AWG0:Amp2:Amplitude</pv_name> | |
<pv_name trigger="false">$(P):AWG0:Amp3:Amplitude</pv_name> | |
</script> | |
</scripts> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_34</name> | |
<pv_name>$(P):AWG0:Amp1:Amplitude</pv_name> | |
<x>520</x> | |
<y>80</y> | |
<precision>3</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<increment>0.1</increment> | |
<enabled>false</enabled> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_35</name> | |
<pv_name>$(P):AWG0:Amp2:Amplitude</pv_name> | |
<x>520</x> | |
<y>110</y> | |
<precision>3</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<increment>0.1</increment> | |
<enabled>false</enabled> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_36</name> | |
<pv_name>$(P):AWG0:Amp3:Amplitude</pv_name> | |
<x>520</x> | |
<y>140</y> | |
<precision>3</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<increment>0.1</increment> | |
<enabled>false</enabled> | |
</widget> | |
<widget type="scrollbar" version="2.0.0"> | |
<name>Scrollbar_6</name> | |
<pv_name>$(P):AWG0:Amp1:Amplitude</pv_name> | |
<x>410</x> | |
<y>80</y> | |
<limits_from_pv>true</limits_from_pv> | |
<increment>0.1</increment> | |
<enabled>false</enabled> | |
</widget> | |
<widget type="scrollbar" version="2.0.0"> | |
<name>Scrollbar_7</name> | |
<pv_name>$(P):AWG0:Amp0:Amplitude</pv_name> | |
<x>410</x> | |
<y>50</y> | |
<limits_from_pv>true</limits_from_pv> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="rectangle" version="2.0.0"> | |
<name>Rectangle_2</name> | |
<x>20</x> | |
<y>170</y> | |
<width>610</width> | |
<height>5</height> | |
<line_width>0</line_width> | |
<background_color> | |
<color red="77" green="128" blue="128"> | |
</color> | |
</background_color> | |
</widget> | |
<widget type="spinner" version="2.0.0"> | |
<name>TextUpdate_37</name> | |
<pv_name>$(P):AWG0:DDSB:SetDDSFreq</pv_name> | |
<x>430</x> | |
<y>10</y> | |
<width>190</width> | |
<precision>2</precision> | |
<show_units>true</show_units> | |
<background_color> | |
<color name="Read_Background" red="240" green="240" blue="240"> | |
</color> | |
</background_color> | |
<actions> | |
</actions> | |
<increment>0.1</increment> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_53</name> | |
<text>Label Text</text> | |
<x>340</x> | |
<y>10</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:DDSB:SetDDSFreq.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_54</name> | |
<text>Label Text</text> | |
<x>320</x> | |
<y>50</y> | |
<width>80</width> | |
<horizontal_alignment>2</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rules> | |
<rule name="descr" prop_id="text" out_exp="true"> | |
<exp bool_exp="pvStr0"> | |
<expression>pvStr0</expression> | |
</exp> | |
<pv_name>$(P):AWG0:Amp0:Amplitude.DESC</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
</display> |