Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions socs/agents/lakeshore372/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,12 @@ def custom_pid(self, session, params):
session.add_message('Changing control to Open Loop mode for sample PID.')
self.module.sample_heater.set_mode("Open Loop")

# Check we're in the correct display mode for servo.
# The custom PID expects that the sample heater is in 'current' mode
if self.module.sample_heater.display != "current":
session.add_message("Changing display mode to \'current\' for sample PID.")
self.module.sample_heater.set_heater_display("current")

if heater == 'still':
# Check we're in correct control mode for servo.
if self.module.still_heater.mode != 'Open Loop':
Expand Down