Closedown

This commit is contained in:
X11MA
2017-05-14 05:14:40 +02:00
parent ffafb111f2
commit 39b755d5a3
7 changed files with 55 additions and 35 deletions

View File

@@ -74,7 +74,7 @@ number_of_scans = 1
###############################################################################
caput ("X11PHS-E:OPT","PGM+ID1")
caput(OTF_OFF2,-50) #detune ID2
#caput(OTF_OFF2,-50) #detune ID2
wait_channel(OTF_DONE, 1, type = 'i')
if RUNTYPE in ["+/-", "+", "-"]:
@@ -102,13 +102,13 @@ elif RUNTYPE in ["LH/LV", "LH", "LV"]:
else:
raise Exception("Invalid run type: " + RUNTYPE)
open_vg10()
time.sleep(0.5)
open_vg11()
time.sleep(0.5)
open_vg12()
time.sleep(0.5)
open_vg13()
#open_vg10()
#time.sleep(0.5)
#open_vg11()
#time.sleep(0.5)
#open_vg12()
#time.sleep(0.5)
#open_vg13()
###############################################################################
#Main scan loop
@@ -173,7 +173,7 @@ for scan_no in range(number_of_scans):
fid = fid + 1
caput(OTF_ESET, E1)
close_vg13()
#close_vg13()
print "Finished Energy scan"

View File

@@ -74,7 +74,7 @@ number_of_scans = 1
###############################################################################
caput ("X11PHS-E:OPT","PGM+ID2")
caput(OTF_OFF1,-50) #detune ID1
#caput(OTF_OFF1,-50) #detune ID1
wait_channel(OTF_DONE, 1, type = 'i')
if RUNTYPE in ["+/-", "+", "-"]:
@@ -99,13 +99,13 @@ elif RUNTYPE in ["LH/LV", "LH", "LV"]:
else:
raise Exception("Invalid run type: " + RUNTYPE)
open_vg10()
time.sleep(0.5)
open_vg11()
time.sleep(0.5)
open_vg12()
time.sleep(0.5)
open_vg13()
#open_vg10()
#time.sleep(0.5)
#open_vg11()
#time.sleep(0.5)
#open_vg12()
#time.sleep(0.5)
#open_vg13()
###############################################################################
#Main scan loop
@@ -170,7 +170,7 @@ for scan_no in range(number_of_scans):
fid = fid + 1
caput(OTF_ESET, E1)
close_vg13()
#close_vg13()
print "Finished Energy scan"

View File

@@ -22,8 +22,8 @@ RANGES = [(B1, B2, -BSTEP),(B2,B1,BSTEP)]
# Here polarization and offsets are set
caput ("X11PHS-E:OPT","PGM+ID1")
caput(OTF_OFF1,OFFSET1) #detune ID1
caput(OTF_OFF2,OFFSET2)
#caput(OTF_OFF2,-50) #detune ID2
caput(OTF_OFF1,OFFSET1)
wait_channel(OTF_DONE, 1, type = 'i')
if MODE is 1 or 2:

View File

@@ -22,7 +22,7 @@ RANGES = [(B1, B2, -BSTEP),(B2,B1,BSTEP)]
# Here polarization and offsets are set
caput ("X11PHS-E:OPT","PGM+ID2")
caput(OTF_OFF1,OFFSET1) #detune ID1
#caput(OTF_OFF1,-50) #detune ID1
caput(OTF_OFF2,OFFSET2)
wait_channel(OTF_DONE, 1, type = 'i')

View File

@@ -2,15 +2,15 @@
<configuration xmlns="http://www.psi.ch/~ebner/models/scan/1.0" numberOfExecution="1" failOnSensorError="true">
<data format="txt" fileName="harmonic"/>
<scan>
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X11MA-ID2:ENERGY" value="710"/>
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X11MA-ID2:ENERGY" value="790"/>
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X11MA-ID2:DONE" value="DONE" operation="wait"/>
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X11PHS-E:OPT" value="PGM" operation="put" type="String"/>
<dimension zigzag="false" dataGroup="false">
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RegionPositioner" name="X11MA-PHS:E_SP" readback="X11MA-PGM:rbkenergy" settlingTime="0.5" asynchronous="false" id="PGMenergy">
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RegionPositioner" name="X11MA-PHS:E_SP" readback="X11MA-PGM:rbkenergy" settlingTime="0.5" done="X11MA-PHS:ALL-DONE" asynchronous="false" id="PGMenergy">
<region>
<start>700.0</start>
<end>720.0</end>
<stepSize>0.5</stepSize>
<start>785.0</start>
<end>795.0</end>
<stepSize>1.0</stepSize>
</region>
</positioner>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X11MA-ES1:CADC2" id="sample"/>
@@ -19,7 +19,7 @@
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X11MA-ID2:ALPHA" id="polangle"/>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="X11MA-ID2:ENERGY-OFFS" id="offset"/>
</dimension>
<postAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MA-PHS-E:OPT" value="PGM+ID" operation="put" type="String"/>
<postAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X11PHS-E:OPT" value="PGM+ID2" operation="put" type="String"/>
</scan>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="PGMenergy" y="I0" title="I0"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="PGMenergy" y="sample" title="sample"/>

View File

@@ -5,9 +5,9 @@
<dimension zigzag="false" dataGroup="false">
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RegionPositioner" name="X11MA-VME-ES4:TRY" asynchronous="false" id="horizontal">
<region>
<start>9.0</start>
<end>18.0</end>
<stepSize>0.1</stepSize>
<start>10.0</start>
<end>20.0</end>
<stepSize>0.25</stepSize>
</region>
</positioner>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X11MA-ES1:CADC1" id="I0"/>
@@ -18,16 +18,24 @@
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="ARIDI-PCT:CURRENT" id="ringCurrent"/>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X11MA-PHS:E_SP" id="energy"/>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="X11MA-VME-ES4:TRY.RBV" id="vertical"/>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="X11MA-ES1:CADC3" id="TFY"/>
</dimension>
<dimension zigzag="false" dataGroup="false">
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ArrayPositioner" name="X11MA-PHS:E_SP" readback="X11MA-PGM:rbkenergy" settlingTime="0.0" done="X11MA-PHS:ALL-DONE" asynchronous="false" id="p2">
<positions>709.4 700</positions>
<positions>782.7 778</positions>
</positioner>
</dimension>
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="norm">
<mapping xsi:type="IDParameterMapping" refid="TEY" variable="c"/>
<mapping xsi:type="IDParameterMapping" refid="I0" variable="d"/>
<script>import math
def process(c,d):
return c/d</script>
</manipulation>
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="TFYnorm">
<mapping xsi:type="IDParameterMapping" refid="TFY" variable="c"/>
<mapping xsi:type="IDParameterMapping" refid="I0" variable="d"/>
<script>import math
def process(c,d):
return c/d</script>
</manipulation>
@@ -35,4 +43,6 @@ def process(c,d):
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="horizontal" y="TEY" title="TEY"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="horizontal" y="norm" title="TEY norm"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="horizontal" y="I0" title=" I0"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="horizontal" y="TFY" title=" TFY"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="horizontal" y="TFYnorm" title=" TFY norm"/>
</configuration>

View File

@@ -5,9 +5,9 @@
<dimension zigzag="false" dataGroup="false">
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RegionPositioner" name="X11MA-VME-ES4:TRZ" settlingTime="0.5" asynchronous="false" id="vertical">
<region>
<start>9.0</start>
<end>17.0</end>
<stepSize>0.25</stepSize>
<start>3.0</start>
<end>20.0</end>
<stepSize>0.5</stepSize>
</region>
</positioner>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X11MA-ES1:CADC1" id="I0"/>
@@ -17,16 +17,24 @@
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X11MA-ES3-LSCI:TEMP_RBV" id="temperature"/>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="ARIDI-PCT:CURRENT" id="ringCurrent"/>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X11MA-PHS:E_SP" id="energy"/>
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="X11MA-ES1:CADC3" id="TFY"/>
</dimension>
<dimension zigzag="false" dataGroup="false">
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ArrayPositioner" name="X11MA-PHS:E_SP" readback="X11MA-PGM:rbkenergy" done="X11MA-PHS:ALL-DONE" asynchronous="false" id="p2">
<positions>709.4 700</positions>
<positions>782.7 778</positions>
</positioner>
</dimension>
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="norm">
<mapping xsi:type="IDParameterMapping" refid="TEY" variable="c"/>
<mapping xsi:type="IDParameterMapping" refid="I0" variable="d"/>
<script>import math
def process(c,d):
return c/d</script>
</manipulation>
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="tfynorm">
<mapping xsi:type="IDParameterMapping" refid="TFY" variable="c"/>
<mapping xsi:type="IDParameterMapping" refid="I0" variable="d"/>
<script>import math
def process(c,d):
return c/d</script>
</manipulation>
@@ -34,4 +42,6 @@ def process(c,d):
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="vertical" y="TEY" title="TEY"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="vertical" y="norm" title="TEY norm"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="vertical" y="I0" title="I0"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="vertical" y="TFY" title=" TFY"/>
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="vertical" y="tfynorm" title=" TFY norm"/>
</configuration>