From c824ac7f48b664f2c0419d1255e339fae01641bc Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Wed, 13 Dec 2017 22:58:51 +0100 Subject: [PATCH] Script execution --- script/field_sweepID2_Jaianth.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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