Compare commits

...

2 Commits

Author SHA1 Message Date
11428120b9 delete test comment 2024-07-12 17:11:14 +02:00
034c1e4d33 Test 2024-07-12 17:10:17 +02:00

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
@ -567,4 +567,3 @@ sweep_b_val(powerbox_dualsupply, set_llim_bval, set_ulim_bval, set_res_bval,
write_no_echo(powerbox_dualsupply, 'LOCAL') # turn off the remote mode
# time.sleep(0.5)
powerbox_dualsupply.close()