Skip to content

Focal Plane Temperature Setting? #91

@kmharrington

Description

@kmharrington

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions