Script execution

This commit is contained in:
gac-x03da
2020-02-03 16:07:42 +01:00
parent 986cf01684
commit 78954714d7
+6 -6
View File
@@ -8,12 +8,12 @@ set keithleys manually to "poll curr slow" and fixed range (20 nA for diode, 200
POSITIONERS = (ExitSlitY)
SENSORS = (SampleCurrent,RefCurrent, MachineCurrent)
STARTPOS = (1.0)
ENDPOS = (-0.5)
STEPS = -0.01
STARTPOS = (0.5)
ENDPOS = (-0.25)
#STEPS = -0.01
DWELL = 0.1
TOTAL_TIME = 150
#STEPS = int(TOTAL_TIME / DWELL) + 1
STEPS = int(TOTAL_TIME / DWELL) + 1
def trig():
wait_beam()
@@ -26,5 +26,5 @@ def trig():
#set_adc_averaging(dwelltime=DWELL)
#set_exec_pars(compression=True, shuffle=True)
set_exec_pars(compression=True)
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
#cscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, time=TOTAL_TIME, after_read=after_readout, check_positions = False)
#lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
cscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, time=TOTAL_TIME, after_read=after_readout, check_positions = False)