stoner_measurement.plugins.command.set_temperature.SetTemperatureCommand

class stoner_measurement.plugins.command.set_temperature.SetTemperatureCommand(parent=None)[source]

Bases: SetEngineStateCommand

Set a temperature-control loop target during a sequence.

Use this command to change the setpoint of one loop on the active temperature controller. If necessary, the command connects the preferred configured controller before setting the target. It can either continue immediately or hold sequence execution until the engine reports that the selected loop is stable.

The configuration tab provides Control loop, Stability timeout, Setpoint expression, and Wait expression controls. The setpoint is in kelvin and may be a number or an expression evaluated in the sequence namespace when the step runs. The wait expression defaults to True; set it to False or to another Boolean expression to continue after the first state read. The stability timeout defaults to 20 minutes.

When execution finishes, the command publishes Temperature, Setpoint, Heater Output, At Setpoint, Stable, and Timed Out scalar outputs from the final controller state. Boolean outputs are represented as 1.0 or 0.0. They can be selected by later sequence steps or read with output_value() in the console.

The loop selector labels Primary and Secondary explicitly. Secondary is optional and disabled by default in the controller panel. A saved unavailable loop remains selected and cannot silently fall back to the other instrument.

Variables:
  • controller_id (str) – Persistent controller slot, "primary" (default) or "secondary".

  • control_loop (int) – One-based controller loop to update. Defaults to 1.

  • setpoint_expr (str) – Numeric expression for the target temperature in kelvin. Defaults to "300.0".

  • wait_expr (str) – Boolean expression controlling whether execution waits for the selected loop to become stable. Defaults to "True".

  • settle_timeout_minutes (float | str) – Maximum stability wait in minutes, as a number or runtime expression. Defaults to 20.0.

  • timed_out (bool) – Whether the most recent execution reached its stability timeout.

  • instance_name (str) – Inherited sequence-instance name used to identify the command and its published scalar outputs.

  • sequence_engine (SequenceEngine | None) – Inherited reference to the sequence engine and its live namespace.

  • comment (str) – Inherited optional note displayed beside this step.

Keyword Parameters:

parent (QObject | None) – Optional Qt parent object.

Examples

With an instance named set_temperature in the sequence, use the QtConsole to inspect or edit it before running. Substitute your instance name if different; result data reflects completed steps:

set_temperature.control_loop = 2
set_temperature.setpoint_expr = "base_temperature + 5"
set_temperature.settle_timeout_minutes = 30.0
property controller_features: frozenset[str]

Return controller feature flags required by this plugin.

property name: str

Unique human-readable name for this plugin.

property output_names: tuple[str, ...]

Names of scalar values captured from the final engine snapshot.

setpoint_suffix = 'K'
property wait_timeout_seconds: float

Return the configured stability timeout in seconds.