Script execution

This commit is contained in:
gac-x11ma
2017-12-13 22:58:51 +01:00
parent f9bad1c74a
commit c824ac7f48

View File

@@ -69,9 +69,9 @@ for B in setpoints:
caput(OTF_ESET, E[0])
wait_channel(OTF_DONE, 1, type = 'i')
readback2 = energy.read()
if abs(readback2 - E[0]) > 0.1 : # TODO: Check accuracy
raise Exception('Energy could not be set to the value ' + str(E[0]))
sleep( ENERGY_CHANGE_SLEEP ) # Settling time
#if abs(readback2 - E[0]) > 0.1 : # TODO: Check accuracy
#raise Exception('Energy could not be set to the value ' + str(E[0]))
#sleep( ENERGY_CHANGE_SLEEP ) # Settling time
detector1 = keithley_1a.read() #Keithley1
detector2 = keithley_2a.read() #Keithley2
@@ -88,9 +88,9 @@ for B in setpoints:
caput(OTF_ESET, E[1])
wait_channel(OTF_DONE, 1, type = 'i')
readback2 = energy.read()
if abs(readback2 - E[1]) > 0.1 : # TODO: Check accuracy
raise Exception('Energy could not be set to the value ' + str(E[0]))
sleep( ENERGY_CHANGE_SLEEP ) # Settling time
#if abs(readback2 - E[1]) > 0.1 : # TODO: Check accuracy
#raise Exception('Energy could not be set to the value ' + str(E[0]))
#sleep( ENERGY_CHANGE_SLEEP ) # Settling time
detector1 = keithley_1a.read() #Keithley1
detector2 = keithley_2a.read() #Keithley2