diff --git a/script/optics/ExitSlitYScan.py b/script/optics/ExitSlitYScan.py index f0cd1894..10e1f6b6 100644 --- a/script/optics/ExitSlitYScan.py +++ b/script/optics/ExitSlitYScan.py @@ -10,9 +10,10 @@ POSITIONERS = (ExitSlitY) SENSORS = (SampleCurrent,RefCurrent, MachineCurrent) STARTPOS = (0.5) ENDPOS = (-0.5) -STEPS = 1 +#STEPS = -0.01 DWELL = 0.1 TOTAL_TIME = 50 +STEPS = int(TOTAL_TIME / DWELL) + 1 def trig(): wait_beam() @@ -25,4 +26,4 @@ def trig(): #set_adc_averaging(dwelltime=DWELL) #set_exec_pars(compression=True, shuffle=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) +cscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, time=TOTAL_TIME, after_read=after_readout, check_positions = False)