Script execution
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user