stoner_measurement.instruments.lakeshore.temperature_controllers.Lakeshore340¶
- class stoner_measurement.instruments.lakeshore.temperature_controllers.Lakeshore340(transport: BaseTransport, protocol: BaseProtocol | None = None)[source]¶
Bases:
_LakeshoreTemperatureControllerBaseModel 340 native control commands for the standard A/B input hardware.
Loop 1 drives the heater; Loop 2 drives analog output 2, which must already be configured for loop control on the instrument. Only Loop 1 has heater ranges. Zone tables contain six values, unlike the 335’s eight. Native input setup uses Lakeshore340InputSettings and a dedicated native editor.
- get_heater_output(loop: int) float[source]¶
Read heater percent for Loop 1 or actual analog-output percent for Loop 2.
- get_input_channel_settings(channel: str) Lakeshore340InputSettings[source]¶
Read the native INTYPE, INSET, FILTER and curve layouts.
- get_loop_mode(loop: int) ControlMode[source]¶
Read loop enable from CSET and control algorithm from CMODE.
- get_sensor_status(channel: str) SensorStatus[source]¶
Decode the Model 340 reading-status bit definitions.
- get_setpoint(loop: int) float[source]¶
Return a kelvin setpoint, converting native Celsius when necessary.
- get_zone(loop: int, zone_index: int) ZoneEntry[source]¶
Read a native six-field Model 340 zone entry.
- set_heater_range(loop: int, range_: int) None[source]¶
Set Loop 1’s heater range using RANGE without a loop argument.
- set_input_channel(loop: int, channel: str) None[source]¶
Select an A/B sensor, preserving units and enable flags.
- set_input_channel_settings(channel: str, settings: InputChannelSettings) None[source]¶
Write only supplied native fields; blanks preserve hardware defaults.
Temperature-unit and autorange fields from the 335 schema are rejected. Supplying native overrides to INTYPE can select the hardware Special sensor type, as documented by the Model 340 manual.
- set_loop_mode(loop: int, mode: ControlMode) None[source]¶
Enable the selected control algorithm, or disable the loop with CSET.
- set_manual_heater_output(loop: int, output: float) None[source]¶
Set native manual output in percent, including bipolar analog control.
- set_pid(loop: int, p: float, i: float, d: float) None[source]¶
Set native gain/reset/rate values; I is reset, not an integral time.
- set_ramp_enabled(loop: int, enabled: bool) None[source]¶
Toggle ramping while retaining its rate under the shared lock.
- set_ramp_rate(loop: int, rate: float) None[source]¶
Set a 0–100 K/min ramp rate while retaining enable state atomically.
- set_setpoint(loop: int, value: float) None[source]¶
Write a kelvin target in the loop’s configured temperature units.
- set_zone(loop: int, zone_index: int, entry: ZoneEntry) None[source]¶
Write the six native zone fields, excluding 335-only input and ramp fields.
- write(command: str, slow: int | None = None) None[source]¶
Write a native action and check the documented event-status register.
- Parameters:
command (str) – Model 340 action without a terminator.
- Keyword Parameters:
slow (int | None) – Optional transport delay in milliseconds.
- Raises:
InstrumentError – Command, execution, device or query error is reported.