This commit is contained in:
249
script/test/BugSuperXAS.xml
Normal file
249
script/test/BugSuperXAS.xml
Normal file
@@ -0,0 +1,249 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<configuration xmlns="http://www.psi.ch/~ebner/models/scan/1.0" numberOfExecution="1" failOnSensorError="true">
|
||||
<data format="txt" fileName="Au_calib"/>
|
||||
<scan>
|
||||
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Input" value="0" delay="0.1"/>
|
||||
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Input" value="0" operation="put" type="String" delay="0.1"/>
|
||||
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Input" value="0" operation="put" type="String" delay="0.1"/>
|
||||
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Input" value="0" delay="0.1"/>
|
||||
<dimension zigzag="false" dataGroup="false">
|
||||
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RegionPositioner" name="TESTIOC:TESTCALCOUT:Input" readback="TESTIOC:TESTCALCOUT:Input" settlingTime="0.3" doneDelay="0.3" asynchronous="false" id="posX">
|
||||
<region>
|
||||
<preAction xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Output" value="2" operation="put" type="Integer"/>
|
||||
<start>-8.0</start>
|
||||
<end>0.0</end>
|
||||
<stepSize>1.2</stepSize>
|
||||
</region>
|
||||
</positioner>
|
||||
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Output" value="1" operation="putq" delay="0.1"/>
|
||||
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Output" value="1" operation="putq"/>
|
||||
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Output" value="1" delay="0.6"/>
|
||||
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Output" value="1" operation="wait" type="Integer" delay="0.2"/>
|
||||
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="TESTIOC:TESTCALCOUT:Output" value="1" delay="0.1"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="Fluo-Ketek1"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="SAI01-MEAN"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="TESTIOC:TESTCALCOUT:Output" id="SAI02-MEAN"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="TESTIOC:TESTCALCOUT:Output" id="SAI03-MEAN"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="TESTIOC:TESTCALCOUT:Output" id="Ring-current"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="TESTIOC:TESTCALCOUT:Output" id="IntegrTimeSet"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="TESTIOC:TESTCALCOUT:Output" id="IntegrTimeGet"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Timestamp" id="Timestamp"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="dead_time"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="Fluo-Ketek2"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="Sca1"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaICR1"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaOCR1"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ERTM1"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="Sca2"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaICR2"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaOCR2"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ERTM2"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="Sca3"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaICR3"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaOCR3"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ERTM3"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="Sca4"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaICR4"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaOCR4"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ERTM4"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="Sca5"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaICR5"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ScaOCR5"/>
|
||||
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" name="TESTIOC:TESTCALCOUT:Output" id="ERTM5"/>
|
||||
</dimension>
|
||||
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="TrueFluoChannel1">
|
||||
<mapping xsi:type="IDParameterMapping" refid="Sca1" variable="a"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaICR1" variable="b"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaOCR1" variable="c"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ERTM1" variable="d"/>
|
||||
<script>import math
|
||||
def process(a,b,c,d):
|
||||
DeadTime = 1.182e-7
|
||||
ICR = b
|
||||
OCR = c
|
||||
|
||||
if (OCR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
if (ICR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
|
||||
Test = 1.e8
|
||||
TestICR = ICR
|
||||
n = 0
|
||||
while ((Test > DeadTime) and (n < 30)):
|
||||
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
||||
Test = (TrueICR - TestICR) / TestICR
|
||||
TestICR = TrueICR
|
||||
n = n + 1
|
||||
if (OCR*d) <> 0:
|
||||
box = a * TrueICR / OCR / d
|
||||
if (OCR*d) == 0:
|
||||
box=0.0
|
||||
return box</script>
|
||||
</manipulation>
|
||||
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="TrueFluoChannel2">
|
||||
<mapping xsi:type="IDParameterMapping" refid="Sca2" variable="a"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaICR2" variable="b"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaOCR2" variable="c"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ERTM2" variable="d"/>
|
||||
<script>import math
|
||||
def process(a,b,c,d):
|
||||
DeadTime = 1.182e-7
|
||||
ICR = b
|
||||
OCR = c
|
||||
|
||||
if (OCR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
if (ICR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
|
||||
Test = 1.e8
|
||||
TestICR = ICR
|
||||
n = 0
|
||||
while ((Test > DeadTime) and (n < 30)):
|
||||
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
||||
Test = (TrueICR - TestICR) / TestICR
|
||||
TestICR = TrueICR
|
||||
n = n + 1
|
||||
if (OCR*d) <> 0:
|
||||
box = a * TrueICR / OCR / d
|
||||
if (OCR*d) == 0:
|
||||
box=0.0
|
||||
return box</script>
|
||||
</manipulation>
|
||||
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="TrueFluoChannel3">
|
||||
<mapping xsi:type="IDParameterMapping" refid="Sca3" variable="a"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaICR3" variable="b"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaOCR3" variable="c"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ERTM3" variable="d"/>
|
||||
<script>import math
|
||||
def process(a,b,c,d):
|
||||
DeadTime = 1.182e-7
|
||||
ICR = b
|
||||
OCR = c
|
||||
|
||||
if (OCR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
if (ICR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
|
||||
Test = 1.e8
|
||||
TestICR = ICR
|
||||
n = 0
|
||||
while ((Test > DeadTime) and (n < 30)):
|
||||
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
||||
Test = (TrueICR - TestICR) / TestICR
|
||||
TestICR = TrueICR
|
||||
n = n + 1
|
||||
if (OCR*d) <> 0:
|
||||
box = a * TrueICR / OCR / d
|
||||
if (OCR*d) == 0:
|
||||
box=0.0
|
||||
return box</script>
|
||||
</manipulation>
|
||||
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="TrueFluoChannel4">
|
||||
<mapping xsi:type="IDParameterMapping" refid="Sca4" variable="a"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaICR4" variable="b"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaOCR4" variable="c"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ERTM4" variable="d"/>
|
||||
<script>import math
|
||||
def process(a,b,c,d):
|
||||
DeadTime = 1.182e-7
|
||||
ICR = b
|
||||
OCR = c
|
||||
|
||||
if (OCR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
if (ICR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
|
||||
Test = 1.e8
|
||||
TestICR = ICR
|
||||
n = 0
|
||||
while ((Test > DeadTime) and (n < 30)):
|
||||
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
||||
Test = (TrueICR - TestICR) / TestICR
|
||||
TestICR = TrueICR
|
||||
n = n + 1
|
||||
if (OCR*d) <> 0:
|
||||
box = a * TrueICR / OCR / d
|
||||
if (OCR*d) == 0:
|
||||
box=0.0
|
||||
return box</script>
|
||||
</manipulation>
|
||||
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="TrueFluoChannel5">
|
||||
<mapping xsi:type="IDParameterMapping" refid="Sca5" variable="a"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaICR5" variable="b"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ScaOCR5" variable="c"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="ERTM5" variable="d"/>
|
||||
<script>import math
|
||||
def process(a,b,c,d):
|
||||
DeadTime = 1.182e-7
|
||||
ICR = b
|
||||
OCR = c
|
||||
|
||||
if (OCR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
if (ICR) == 0:
|
||||
box = 0
|
||||
return box
|
||||
|
||||
Test = 1.e8
|
||||
TestICR = ICR
|
||||
n = 0
|
||||
while ((Test > DeadTime) and (n < 30)):
|
||||
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
||||
Test = (TrueICR - TestICR) / TestICR
|
||||
TestICR = TrueICR
|
||||
n = n + 1
|
||||
if (OCR*d) <> 0:
|
||||
box = a * TrueICR / OCR / d
|
||||
if (OCR*d) == 0:
|
||||
box=0.0
|
||||
return box</script>
|
||||
</manipulation>
|
||||
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="TotalFluo">
|
||||
<mapping xsi:type="IDParameterMapping" refid="TrueFluoChannel1" variable="a"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="TrueFluoChannel2" variable="b"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="TrueFluoChannel3" variable="c"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="TrueFluoChannel4" variable="d"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="TrueFluoChannel5" variable="e"/>
|
||||
<script>import math
|
||||
def process(a,b,c,d,e):
|
||||
SUM_DET = 0.
|
||||
SUM_DET = SUM_DET + a
|
||||
SUM_DET = SUM_DET + b
|
||||
SUM_DET = SUM_DET + c
|
||||
SUM_DET = SUM_DET + d
|
||||
SUM_DET = SUM_DET + e
|
||||
return SUM_DET</script>
|
||||
</manipulation>
|
||||
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" returnArray="false" id="TotalFluoXAS">
|
||||
<mapping xsi:type="IDParameterMapping" refid="TotalFluo" variable="c"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="SAI01-MEAN" 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="XAS-refer">
|
||||
<mapping xsi:type="IDParameterMapping" refid="SAI01-MEAN" variable="a"/>
|
||||
<mapping xsi:type="IDParameterMapping" refid="SAI02-MEAN" variable="b"/>
|
||||
<script>import math
|
||||
def process(a,b):
|
||||
return math.log(math.fabs(a) /math.fabs(b))</script>
|
||||
</manipulation>
|
||||
</scan>
|
||||
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="posX" y="SAI01-MEAN" title=" I0"/>
|
||||
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="posX" y="SAI02-MEAN" title=" I1"/>
|
||||
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="posX" y="XAS-refer" title=" XAS-trans"/>
|
||||
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="posX" y="TotalFluoXAS" title="XAS-Fluo"/>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user