diff --git a/script/field_sweepID2_Jaianth.py b/script/field_sweepID2_Jaianth.py index c8d37f4..f748448 100644 --- a/script/field_sweepID2_Jaianth.py +++ b/script/field_sweepID2_Jaianth.py @@ -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