Script execution
This commit is contained in:
@@ -78,22 +78,25 @@ else:
|
||||
|
||||
def trig():
|
||||
wait_beam()
|
||||
print "init"
|
||||
caput(KEI_DIODE + "DOINIT", 1)
|
||||
caput(KEI_RMU + "DOINIT", 1)
|
||||
time.sleep(0.1)
|
||||
print "trigger"
|
||||
caput(KEI_DIODE + "DOTRIGGER", 1)
|
||||
caput(KEI_RMU + "DOTRIGGER", 1)
|
||||
caput("X03DA-OP-10ADC:TRG.PROC", 1)
|
||||
#time.sleep(DWELL * 1.1)
|
||||
print "fetch"
|
||||
caput(KEI_DIODE + "DOFETCH", 1)
|
||||
caput(KEI_RMU + "DOFETCH", 1)
|
||||
print "done"
|
||||
|
||||
value = DWELL * 10.0
|
||||
SampleCurrentAveraging.write(value)
|
||||
RefCurrentAveraging.write(value)
|
||||
|
||||
POSITIONERS = (Eph)
|
||||
SENSORS = (Keithley1, SampleCurrent, RefCurrent, MachineCurrent)
|
||||
SENSORS = (Keithley1, Keithley2, SampleCurrent, RefCurrent, MachineCurrent)
|
||||
|
||||
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user