Compare commits
2 Commits
JulyPullTe
...
main
Author | SHA1 | Date | |
---|---|---|---|
11428120b9 | |||
034c1e4d33 |
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user