Skip to content

Add stimulator functionality for flexible operation#257

Open
dixilo wants to merge 2 commits intomainfrom
jsuzuki/stimulator/add_function
Open

Add stimulator functionality for flexible operation#257
dixilo wants to merge 2 commits intomainfrom
jsuzuki/stimulator/add_function

Conversation

@dixilo
Copy link
Copy Markdown
Contributor

@dixilo dixilo commented Apr 15, 2026

Summary

This PR extends stimulator.py with functions for direct PCR500MA heater control and chopper operation, and adds corresponding tests.

New public functions

open_shutter() / close_shutter() — previously private; promoted to public API
rotate(speed_rpm, forward=True, start=True) — set chopper speed and optionally start rotation; start=False allows speed-only updates (e.g. mid-run speed changes)
stop_rotation() — stop the chopper; previously inlined in _stop()
set_heater_voltage(volt, force=False) — set PCR500MA output voltage with discrepancy check; force=True bypasses the check
ramp_heater(volt, vstep=1) — ramp to target voltage in steps, with output-on guard
set_to_0V_heater() — reset voltage setpoint to 0 V when output is OFF
set_heater_output(output, force=False) — turn PCR500MA output on/off

@dixilo dixilo requested a review from YudaiSeino April 15, 2026 05:56
@dixilo dixilo requested a review from BrianJKoopman as a code owner April 15, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant