stoner_measurement.plugins.state_scan.temperature_controller.TemperatureControllerScanPlugin

class stoner_measurement.plugins.state_scan.temperature_controller.TemperatureControllerScanPlugin(parent=None)[source]

Bases: TemperatureControllerPluginMixin, StateScanPlugin

Step temperature through a list of set-points.

Use this plugin when you want the sequence to move the temperature controller to a series of discrete target temperatures generated by the scan settings. It is the usual choice for temperature-dependent measurements where data are taken after stabilising at each set-point.

In the configuration tabs, you choose the temperature-controller settings and the scan generator that defines the temperature points. During execution, the plugin ramps to each set-point and waits until the engine reports that the selected control loop is stable.

Settings selects Control loop, Stability timeout in minutes (a number or per-point expression), and Reported sensors (blank means all known sensors). Scan defines temperatures in kelvin and Data selects collected outputs and column roles. On stability timeout the scan continues with its timed-out flag set; it does not assert stability.

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. Unqualified sensor names refer to primary; use secondary:A in sensor lists to select channel A on secondary. Available-sensor pickers avoid typing channel names. Blank sensor lists include both connected controllers.

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

  • settle_timeout_minutes (float | str) – Maximum time to wait for the selected loop to become stable at each set-point, as a number or runtime expression in minutes. Expressions are reevaluated at each point and may refer to the current target through value. Defaults to 20.0.

  • timed_out (bool) – Whether the most recent set-point wait reached its stability timeout.

  • control_loop (int) – One-based control loop; defaults to 1.

  • sensor_channels (list[str] | None) – Reported sensors; None selects all known sensors.

  • instance_name (str) – Inherited Python identifier for this instance in the Script tab and QtConsole.

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

  • sequence_engine (SequenceEngine | None) – Inherited owning engine and its live namespace; None while detached.

  • scan_generator (BaseScanGenerator) – Inherited generator defining successive sequence points.

  • value (float) – Inherited current sequence control value.

  • ix (int) – Inherited zero-based iteration index.

  • meas_flag (bool) – Inherited flag indicating a measurement point.

  • collect_data (bool) – Inherited switch enabling collection of selected sequence outputs.

  • data (TraceData) – Inherited accumulated table; inspect data.df after collection.

Keyword Parameters:

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

Examples

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

temperature_controller_scan.control_loop = 2
temperature_controller_scan.settle_timeout_minutes = 30.0
temperature_controller_scan.timed_out
configure() → None

Configure the instrument (NOP default).

connect() → None

Open instrument connections (NOP default).

disconnect() → None

Leave the shared engine running.

property name: str

Unique human-readable name for this plugin.

property settle_timeout: float

Return the configured stability timeout in seconds.

property state_name: str

Human-readable name of the controlled or swept physical quantity.

Returns:

E.g. "Magnetic Field", "Temperature", "Time".

Return type:

(str)

to_json() → dict[str, object][source]

Serialise this plugin’s configuration, including the scan generator.

Extends to_json() with a "scan_generator" key.

Returns:

JSON-serialisable dictionary with all plugin keys.

Return type:

(dict[str, Any])

Examples

>>> from qtpy.QtWidgets import QApplication
>>> _ = QApplication.instance() or QApplication([])
>>> from stoner_measurement.plugins.state_scan import CounterPlugin
>>> plugin = CounterPlugin()
>>> d = plugin.to_json()
>>> d["type"]
'state_scan'
>>> "scan_generator" in d
True
>>> d["collect_data"]
False
>>> d["clear_on_start"]
True
property units: str

Physical unit of the controlled or swept quantity.

Returns:

E.g. "T", "K", "s".

Return type:

(str)