Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 388 lines (387 sloc) 9.77 KB
<?xml version="1.0" encoding="UTF-8"?>
<display version="2.0.0">
<name>Coarse Approach</name>
<width>750</width>
<scripts>
<script file="EmbeddedPy">
<text><![CDATA[# Embedded python script
from org.csstudio.display.builder.runtime.script import PVUtil, ScriptUtil
print 'Hello'
# widget.setPropertyValue('text', PVUtil.getString(pvs[0]))
While True:
Value = PVUtil.getDouble("CRYVISIL:AWG0:Channel0:SetBurstCount")
PVUtil.writePV("CRYVISIL:AWG0:Channel1:SetBurstCount", Value, 200)
PVUtil.writePV("CRYVISIL:AWG0:Channel2:SetBurstCount", Value, 200)
PVUtil.writePV("CRYVISIL:AWG0:Channel3:SetBurstCount", Value, 200)]]></text>
</script>
</scripts>
<widget type="label" version="2.0.0">
<name>Label</name>
<text>Amplitude </text>
<x>20</x>
<y>30</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_1</name>
<text>Frequency </text>
<x>20</x>
<y>60</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_2</name>
<text>Steps</text>
<x>20</x>
<y>90</y>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry</name>
<pv_name>CRYVISIL:AWG0:Amp0:Amplitude</pv_name>
<x>128</x>
<y>30</y>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_1</name>
<pv_name>CRYVISIL:AWG0:DDSB:SetDDSFreq</pv_name>
<x>129</x>
<y>60</y>
</widget>
<widget type="polygon" version="2.0.0">
<name>Polygon_7</name>
<x>490</x>
<y>38</y>
<width>40</width>
<height>40</height>
<points>
<point x="0.0" y="40.0">
</point>
<point x="40.0" y="40.0">
</point>
<point x="20.0" y="0.0">
</point>
</points>
</widget>
<widget type="polygon" version="2.0.0">
<name>Polygon_8</name>
<x>490</x>
<y>100</y>
<width>40</width>
<height>40</height>
<points>
<point x="0.0" y="0.0">
</point>
<point x="40.0" y="0.0">
</point>
<point x="20.0" y="40.0">
</point>
</points>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_12</name>
<pv_name>CRYVISIL:AWG0:AmpX:Offset</pv_name>
<x>359</x>
<y>60</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_7</name>
<text>Offset AmpX</text>
<x>250</x>
<y>60</y>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_13</name>
<pv_name>CRYVISIL:AWG0:AmpY:Offset</pv_name>
<x>359</x>
<y>90</y>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_14</name>
<pv_name>CRYVISIL:AWG0:AmpZ:Offset</pv_name>
<x>359</x>
<y>120</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_14</name>
<text>+Z</text>
<x>501</x>
<y>20</y>
<width>25</width>
</widget>
<widget type="label" version="2.0.0">
<name>Label_15</name>
<text>-Z</text>
<x>501</x>
<y>140</y>
<width>25</width>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_16</name>
<pv_name>CRYVISIL:AWG0:Channel0:SetBurstCount</pv_name>
<x>129</x>
<y>90</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_3</name>
<text>Status</text>
<x>20</x>
<y>180</y>
<width>50</width>
</widget>
<widget type="label" version="2.0.0">
<name>Label_16</name>
<text>Offset AmpW</text>
<x>250</x>
<y>30</y>
<width>109</width>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_18</name>
<pv_name>CRYVISIL:AWG0:AmpW:Offset</pv_name>
<x>359</x>
<y>30</y>
</widget>
<widget type="action_button" version="3.0.0">
<name>Action Button_11</name>
<actions>
<action type="command">
<command>python ./run_coarse_approach_up.py</command>
<description>run coarse approach up</description>
</action>
</actions>
<text></text>
<x>490</x>
<y>38</y>
<width>40</width>
<height>40</height>
<transparent>true</transparent>
<tooltip>$(actions)</tooltip>
</widget>
<widget type="action_button" version="3.0.0">
<name>Action Button_12</name>
<actions>
<action type="command">
<command>python ./run_coarse_approach_down.py</command>
<description>run coarse approach down</description>
</action>
</actions>
<text></text>
<x>490</x>
<y>100</y>
<width>40</width>
<height>40</height>
<transparent>true</transparent>
<tooltip>$(actions)</tooltip>
</widget>
<widget type="label" version="2.0.0">
<name>Label_17</name>
<text>Channel</text>
<x>20</x>
<y>160</y>
<width>70</width>
</widget>
<widget type="label" version="2.0.0">
<name>Label_18</name>
<text>0</text>
<x>90</x>
<y>160</y>
<width>10</width>
</widget>
<widget type="label" version="2.0.0">
<name>Label_19</name>
<text>2</text>
<x>330</x>
<y>160</y>
<width>20</width>
</widget>
<widget type="label" version="2.0.0">
<name>Label_20</name>
<text>3</text>
<x>450</x>
<y>160</y>
<width>23</width>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_2</name>
<pv_name>CRYVISIL:AWG0:Channel0:BurstBusy</pv_name>
<x>90</x>
<y>180</y>
<width>75</width>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_3</name>
<pv_name>CRYVISIL:AWG0:Channel1:BurstBusy</pv_name>
<x>210</x>
<y>180</y>
<width>75</width>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_4</name>
<pv_name>CRYVISIL:AWG0:Channel2:BurstBusy</pv_name>
<x>330</x>
<y>180</y>
<width>75</width>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_5</name>
<pv_name>CRYVISIL:AWG0:Channel3:BurstBusy</pv_name>
<x>450</x>
<y>180</y>
<width>75</width>
</widget>
<widget type="action_button" version="3.0.0">
<name>Action Button_28</name>
<actions execute_as_one="true">
<action type="write_pv">
<pv_name>CRYVISIL:AWG0:Channel0:SetBurstCount</pv_name>
<value>1</value>
<description>Channel 0</description>
</action>
<action type="write_pv">
<pv_name>CRYVISIL:AWG0:Channel1:SetBurstCount</pv_name>
<value>1</value>
<description>Channel 1</description>
</action>
<action type="write_pv">
<pv_name>CRYVISIL:AWG0:Channel2:SetBurstCount</pv_name>
<value>1</value>
<description>Channel 2</description>
</action>
<action type="write_pv">
<pv_name>CRYVISIL:AWG0:Channel3:SetBurstCount</pv_name>
<value>1</value>
<description>Channel 3</description>
</action>
</actions>
<text>Stop Scan </text>
<x>20</x>
<y>220</y>
<width>110</width>
<tooltip>$(actions)</tooltip>
</widget>
<widget type="label" version="2.0.0">
<name>Label_21</name>
<text>1</text>
<x>210</x>
<y>160</y>
<width>14</width>
</widget>
<widget type="multi_state_led" version="2.0.0">
<name>LED (Multi State)_5</name>
<pv_name>CRYVISIL:AWG0:Channel0:BurstBusy</pv_name>
<x>171</x>
<y>182</y>
<states>
<state>
<value>0</value>
<label></label>
<color>
<color name="Off" red="60" green="100" blue="60">
</color>
</color>
</state>
<state>
<value>1</value>
<label></label>
<color>
<color name="On" red="0" green="255" blue="0">
</color>
</color>
</state>
</states>
</widget>
<widget type="multi_state_led" version="2.0.0">
<name>LED (Multi State)_6</name>
<pv_name>CRYVISIL:AWG0:Channel1:BurstBusy</pv_name>
<x>291</x>
<y>180</y>
<states>
<state>
<value>0</value>
<label></label>
<color>
<color name="Off" red="60" green="100" blue="60">
</color>
</color>
</state>
<state>
<value>1</value>
<label></label>
<color>
<color name="On" red="0" green="255" blue="0">
</color>
</color>
</state>
</states>
</widget>
<widget type="multi_state_led" version="2.0.0">
<name>LED (Multi State)_7</name>
<pv_name>CRYVISIL:AWG0:Channel2:BurstBusy</pv_name>
<x>410</x>
<y>180</y>
<states>
<state>
<value>0</value>
<label></label>
<color>
<color name="Off" red="60" green="100" blue="60">
</color>
</color>
</state>
<state>
<value>1</value>
<label></label>
<color>
<color name="On" red="0" green="255" blue="0">
</color>
</color>
</state>
</states>
</widget>
<widget type="multi_state_led" version="2.0.0">
<name>LED (Multi State)_8</name>
<pv_name>CRYVISIL:AWG0:Channel3:BurstBusy</pv_name>
<x>530</x>
<y>180</y>
<states>
<state>
<value>0</value>
<label></label>
<color>
<color name="Off" red="60" green="100" blue="60">
</color>
</color>
</state>
<state>
<value>1</value>
<label></label>
<color>
<color name="On" red="0" green="255" blue="0">
</color>
</color>
</state>
</states>
</widget>
<widget type="label" version="2.0.0">
<name>Label_22</name>
<text>Offset AmpY</text>
<x>250</x>
<y>90</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_23</name>
<text>Offset Ampz</text>
<x>250</x>
<y>120</y>
</widget>
<widget type="label" version="2.0.0">
<name>Label_24</name>
<text>Array Length</text>
<x>20</x>
<y>120</y>
</widget>
<widget type="textentry" version="3.0.0">
<name>Text Entry_17</name>
<pv_name>CRYVISIL:AWG0:Channel0:SetWfSize</pv_name>
<x>129</x>
<y>120</y>
</widget>
</display>