Compare commits
2 Commits
a566dda4b0
...
082f99aa0d
Author | SHA1 | Date | |
---|---|---|---|
082f99aa0d | |||
0ecbfa12e7 |
@ -7,8 +7,8 @@ Lightfield + Positioner
|
|||||||
############################################
|
############################################
|
||||||
# Packages from Ryan
|
# Packages from Ryan
|
||||||
import re
|
import re
|
||||||
|
from threading import Thread
|
||||||
import pyvisa
|
import pyvisa
|
||||||
import threading
|
|
||||||
# from pyvisa import ResourceManager, constants
|
# from pyvisa import ResourceManager, constants
|
||||||
|
|
||||||
# B Field Limits (in T)
|
# B Field Limits (in T)
|
||||||
@ -572,8 +572,11 @@ def sweep_b_val(instr:pyvisa.resources.Resource, min_bval:float, max_bval:float,
|
|||||||
wl = np.array(loaded_files.wavelength)
|
wl = np.array(loaded_files.wavelength)
|
||||||
np.savetxt("Wavelength.txt", wl)
|
np.savetxt("Wavelength.txt", wl)
|
||||||
|
|
||||||
# TODO: write a function that simultaneously controls the two power supplies. => Threading
|
# TODO: write a function that simultaneously controls the two power supplies and perform the rotation of the B-field. => Threading
|
||||||
# in function head should be func(instr1, instr2, args1, kwargs1, args2, kwargs2)
|
# in function head should be func(instr1, instr2, args1, kwargs1, args2, kwargs2)
|
||||||
|
def b_field_rotation(instr1:pyvisa.resources.Resource, instr2:pyvisa.resources.Resource,
|
||||||
|
Babs:float, startangle:float, endangle:float, angle_stepsize:float, clockwise=True, sweepdown=False)->None:
|
||||||
|
pass
|
||||||
|
|
||||||
################################################################# END OF FUNCTION DEFS ###########################################################################################
|
################################################################# END OF FUNCTION DEFS ###########################################################################################
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user