This commit is contained in:
Ryan Tan 2024-07-12 17:10:17 +02:00
parent c090976d99
commit 034c1e4d33

View File

@ -386,7 +386,7 @@ def sweep_b_val(instr:pyvisa.resources.Resource, min_bval:float, max_bval:float,
instr_bsettings[1][0] = instr_bsettings[1][0]*0.1 # rescale kG to T, device accepts values only in kG or A, eventho we set it to T
instr_bsettings[2][0] = instr_bsettings[2][0]*0.1
if singlepowersupply_bool: # checks limits of Bx or By
if singlepowersupply_bool: # checks limits of By
if (min_bval< -BY_MAX) or (max_bval > BY_MAX):
raise ValueError('Input limits exceed that of the magnet By! Please input smaller limits.')
elif '1' in query_no_echo(instr, 'CHAN?'): # check if its the coils for Bz
@ -568,3 +568,4 @@ write_no_echo(powerbox_dualsupply, 'LOCAL') # turn off the remote mode
# time.sleep(0.5)
powerbox_dualsupply.close()
# TEST COMMIT MAIN BRANCH