stoner_measurement.instruments.oxford.temperature_controllers.OxfordITC503

class stoner_measurement.instruments.oxford.temperature_controllers.OxfordITC503(transport: BaseTransport, protocol: BaseProtocol | None = None)[source]

Bases: _OxfordTemperatureControllerBase

Oxford 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 None for 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_gas_flow() → float[source]

Return the gas-flow needle valve position as a percentage.

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 X status response A token.

Return type:

(ControlMode)

get_needle_valve() → float[source]

Return the needle-valve position as a percentage.

get_num_zones(loop: int) → int[source]

Return the number of ITC503 auto-PID table rows for loop.

Parameters:

loop (int) – Control loop number (1-based).

Returns:

Number of auto-PID table rows supported by the ITC503.

Return type:

(int)

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, and R10 queries.

Return type:

(PIDParameters)

get_ramp_enabled(loop: int) → bool[source]

Return whether sweep/ramp execution is active for loop.

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_setpoint(loop: int) → float[source]

Return calibrated setpoint in Kelvin.

get_temperature(channel: str) → float[source]

Return calibrated channel temperature in Kelvin.

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) and y (column) pointer commands, read back via q. Fields not present in the ITC503 table (ramp rate, heater range and heater output) are returned as 0 for API compatibility. A raw temperature of zero marks the end of the increasing table; its PID columns are not queried.

Parameters:
  • loop (int) – Control loop number (1-based).

  • zone_index (int) – Auto-PID table row index (1-based, 1–32).

Returns:

Zone entry, or None at the end of the populated table.

Return type:

(ZoneEntry | None)

identify() → str[source]

Return identity string.

set_gas_auto(auto: bool) → None[source]

Enable or disable automatic gas-flow control.

The ITC503 A command 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_gas_flow(percent: float) → None[source]

Set the gas-flow needle valve position to percent open.

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:
  • loop (int) – Control loop number (1).

  • output (float) – Percentage of the configured voltage limit, 0–99.9.

Raises:
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:
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:
  • loop (int) – Control loop number (1).

  • p (float) – Non-negative proportional band in kelvin.

  • i (float) – Integral action time in minutes, 0–140.

  • d (float) – Derivative action time in minutes, 0–273.

Raises:
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 S commands, 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.

set_zone(loop: int, zone_index: int, entry: ZoneEntry) → None[source]

Write auto-PID table row zone_index for loop.

Only the ITC503 auto-PID table fields are programmable here: upper boundary, P, I and D.

Parameters:
  • loop (int) – Control loop number (1-based).

  • zone_index (int) – Auto-PID table row index (1-based, 1–32).

  • entry (ZoneEntry) – Zone parameters to write. Only upper_bound, p, i, and d are written by the ITC503 auto-PID table commands.

start_sweep() → None[source]

Start the existing hardware sweep programme with S1.

stop_sweep() → None[source]

Stop hardware sweep execution with S0.

temperature_scales() → dict[str, dict | None][source]

Return an independent YAML-compatible copy of the channel selections.

Returns:

Selected table snapshots or explicit no-scale entries.

Return type:

(dict[str, dict | None])