Script execution

This commit is contained in:
x03daop
2016-09-10 11:59:57 +02:00
parent 2bc1adf942
commit c730af32a2

View File

@@ -8,8 +8,8 @@ set analyser parameters separately!
import math
# adjust the following parameters
DISTANCE = 0.1
STEPS = 20
DISTANCE = 0.2
STEPS = 0.005
LATENCY = 0.5
ENDSCAN = False
@@ -24,8 +24,8 @@ set_adc_averaging()
def trig_sensors():
wait_beam()
trig_scienta()
caput("X03DA-OP-10ADC:TRG.PROC", 1)
trig_scienta()
try:
lscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=trig_sensors, after_read = after_readout)