-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
This one might be more complicated because the agents will be different for the different telescopes. But I would currently love a single function that goes something like set_fpa_pid(temperature)
This is what I currently have for SATp1 (and I'm not totally sure data acquisition turns back on once this has run?)
setpoint=0.087 #Kelvin
LS = OCSClient('cryo-ls372-lsa21yc')
heater='sample'
ch=2
P_val=1000 #watts/Kelvin Started with 2500
I_val=1/40 #Hz Started with 1/20
update_time=1 #seconds
sample_heater_range=3.16e-3 #amps
# Stop data acq
LS.acq.stop()
LS.acq.wait()
#Stop the pid if it is already running
LS.custom_pid.stop()
LS.custom_pid.wait()
status, msg, session = LS.custom_pid.start(
setpoint=setpoint,
heater=heater,
channel=ch,
P=P_val,
I=I_val,
update_time=update_time,
sample_heater_range=sample_heater_range,
test_mode=False
)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request