Script execution

This commit is contained in:
gac-x03da
2018-02-09 14:25:03 +01:00
parent a9073edd51
commit 8a5fa72e5c

View File

@@ -9,7 +9,7 @@ AuxCurrent: not connected
import time
RANGE = "C K-edge"
BEAM = "G1200 1x1"
BEAM = "G600 1x1"
if RANGE == "G600 full":
# G600 full spectrum
@@ -88,12 +88,13 @@ def trig():
caput(KEI_DIODE + "DOFETCH", 1)
caput(KEI_RMU + "DOFETCH", 1)
value = DWELL * 10.0
SampleCurrentAveraging.write(value)
RefCurrentAveraging.write(value)
#value = DWELL * 10.0
#SampleCurrentAveraging.write(value)
#RefCurrentAveraging.write(value)
POSITIONERS = (Eph)
SENSORS = (Keithley1, Keithley2, SampleCurrent, RefCurrent, MachineCurrent)
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, 0.0, before_read=trig, after_read=after_readout)
prepare_keithleys(DWELL)
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=before_readout, after_read=after_readout)