stoner_measurement.instruments.oxford.temperature_controllers.OxfordITC503¶
- class stoner_measurement.instruments.oxford.temperature_controllers.OxfordITC503(transport: BaseTransport, protocol: BaseProtocol | None = None)[source]¶
Bases:
_OxfordTemperatureControllerBaseOxford ITC503 control using the Issue 4 handbook’s command set.
Connection selects remote control with the front panel unlocked. Actions consume their acknowledgements. Heater and gas automatic modes are independent. PID uses native kelvin/minute units. The generic continuous ramp and heater-range APIs are unavailable; stored sweeps have explicit start/stop methods. OFF is manual heater control with zero output and consequently reads back as OPEN_LOOP.
- configure_temperature_scales(scales: Mapping[str, dict | None]) None[source]¶
Replace per-channel software scales atomically without hardware writes.
- Parameters:
scales (Mapping[str, dict | None]) – Channel to saved NI table snapshot, or
Nonefor uncorrected readings. Omitted channels retain the legacy instrument YAML calibration.- Raises:
ValueError – If a channel or table is invalid; existing scales are retained.
- confirm_identity() str[source]¶
Verify the ITC503 and select remote control with the front panel unlocked.
- Returns:
Verified identity returned by the instrument.
- Return type:
(str)
- get_gas_auto() bool[source]¶
Return the gas-auto bit from the hardware A status field.
- Returns:
Whether automatic gas control is active.
- Return type:
(bool)
- get_heater_range(loop: int) int[source]¶
Reject heater-range readback: ITC503 has a voltage limit, not ranges.
- get_input_channel(loop: int) str[source]¶
Read the selected heater sensor from the hardware H status field.
- get_loop_mode(loop: int) ControlMode[source]¶
Return control mode for loop.
- Parameters:
loop (int) – Control loop number (1-based).
- Returns:
Current control mode decoded from the ITC503
Xstatus responseAtoken.- Return type:
- get_pid(loop: int) PIDParameters[source]¶
Return PID parameters for loop.
- Parameters:
loop (int) – Control loop number (1-based).
- Returns:
PID parameters read via separate ITC503
R8,R9, andR10queries.- Return type:
- get_ramp_rate(loop: int) float[source]¶
Return ramp rate in Kelvin per minute for loop.
Continuous ramp rates are not supported; use the programmed sweep API.
- get_zone(loop: int, zone_index: int) ZoneEntry | None[source]¶
Return auto-PID table row zone_index for loop.
The ITC503 Chapter 10 auto-PID table is addressed through the
x(row) andy(column) pointer commands, read back viaq. Fields not present in the ITC503 table (ramp rate, heater range and heater output) are returned as0for API compatibility. A raw temperature of zero marks the end of the increasing table; its PID columns are not queried.
- set_gas_auto(auto: bool) None[source]¶
Enable or disable automatic gas-flow control.
The ITC503
Acommand controls the combined heater/gas auto mode. Bit 0 = auto heater, bit 1 = auto gas. This implementation preserves the current heater-auto state when toggling gas auto mode.
- set_heater_range(loop: int, range_: int) None[source]¶
Reject heater-range changes rather than issuing a sensor command.
- set_input_channel(loop: int, channel: str) None[source]¶
Assign the heater sensor with H1, H2 or H3.
- set_loop_mode(loop: int, mode: ControlMode) None[source]¶
Set heater control and Auto-PID while preserving gas automatic control.
OFF selects manual heater control and zero output. Hardware reports this as OPEN_LOOP because it has no separate off status bit.
- set_manual_heater_output(loop: int, output: float) None[source]¶
Set manual heater output with O; the heater must already be manual.
- Parameters:
- Raises:
ValueError – The loop or output is invalid.
InstrumentError – The controller rejects the command.
- set_maximum_heater_voltage(voltage: float) None[source]¶
Set the maximum heater voltage using M.
- Parameters:
voltage (float) – Non-negative voltage in volts. Zero selects dynamic limiting; the instrument enforces the fitted heater’s limit.
- Raises:
ValueError – The voltage is negative or non-finite.
InstrumentError – The controller rejects the limit.
- set_needle_valve(position: float) None[source]¶
Set the needle-valve position to position percent open.
- set_pid(loop: int, p: float, i: float, d: float) None[source]¶
Disable Auto-PID and set native PID terms for loop.
- Parameters:
- Raises:
ValueError – A loop or PID value is invalid.
InstrumentError – The controller rejects a command.
- set_ramp_enabled(loop: int, enabled: bool) None[source]¶
Reject generic ramp control; use start_sweep() or stop_sweep().
- set_ramp_rate(loop: int, rate: float) None[source]¶
Set ramp rate in Kelvin per minute for loop.
ITC503 sweep start/stop is controlled via
Scommands, without a direct ramp-rate command in Chapter 9.
- set_setpoint(loop: int, value: float) None[source]¶
Set true setpoint in Kelvin, applying ITC503 calibration when available.