Plugin modules

The API catalogue uses each object’s defining module. Package-level imports refer to the same classes; each class is documented once here, including its configuration, outputs, attributes and methods. For the operational guides, start with Controllers, Keithley meters or Collecting, fitting and saving data.

The implementation contracts are in Writing sequence plugins and Plugin output declarations. The latter covers unified declarations, configured schemas, compatibility views and migration from the old publication hooks.

Plugin base classes

stoner_measurement.plugins.base_plugin.BasePlugin

Abstract root class shared by all measurement plugins.

stoner_measurement.plugins.base_plugin.ReservedInstanceNameError

Raised when an instance name is reserved by Python or the application.

stoner_measurement.plugins.base_plugin.instance_name_validation_error

Return an explanation when value cannot be used as an instance name.

stoner_measurement.plugins.base_plugin.is_reserved_instance_name

Return whether value is reserved by Python or the application.

stoner_measurement.plugins.base_plugin.lifecycle_noop

Mark a default lifecycle operation that requires no hardware setup.

Trace plugins

stoner_measurement.plugins.trace._differential.modulate_current_sweep

Return values with alternating +dI and -dI offsets.

stoner_measurement.plugins.trace._differential.reduce_differential_readings

Reduce alternating readings to average voltage and differential response.

stoner_measurement.plugins.trace.base.TracePlugin

Abstract base class for plugins that collect (x, y) data traces.

stoner_measurement.plugins.trace.base.TraceStatus

Operational status of a TracePlugin.

stoner_measurement.plugins.trace.daqmx.DaqmxTracePlugin

Acquire a hardware-timed DAQmx trace with optional synchronised output.

stoner_measurement.plugins.trace.daqmx.DaqmxTraceSettingsWidget

General DAQmx task/timing controls and reusable trigger configuration.

stoner_measurement.plugins.trace.dummy.DummyPlugin

Generate simulated I-V data without using real hardware.

stoner_measurement.plugins.trace.function_trace.FunctionTracePlugin

Calculate a synthetic trace by passing scan values to Python code.

stoner_measurement.plugins.trace.k6221_2182a.ComplianceMode

Mode used to determine the compliance voltage for each sweep point.

stoner_measurement.plugins.trace.k6221_2182a.ConnectionMode

How the 2182A nanovoltmeter is connected to the system.

stoner_measurement.plugins.trace.k6221_2182a.DigitalFilterType

Digital-filter mode exposed by the 2182A measurement controls.

stoner_measurement.plugins.trace.k6221_2182a.Keithley6221_2182APlugin

Measure an I-V sweep using a Keithley 6221 and 2182A.

stoner_measurement.plugins.trace.k6221_2182a.SecondaryTriggerMode

Hardware trigger routing used by the optional second voltmeter.

stoner_measurement.plugins.trace.k6221_2182a.SourceRangeMode

Output current range selection mode for the 6221.

stoner_measurement.plugins.trace.k6221_multi_sr830.ChannelSpec

Static description of one output channel emitted by the plugin.

stoner_measurement.plugins.trace.k6221_multi_sr830.Keithley6221_MultiSR830Plugin

Measure one swept 6221 parameter with one or more supported lock-ins.

stoner_measurement.plugins.trace.k6221_multi_sr830.LockInEntry

Configuration for one lock-in amplifier instance.

stoner_measurement.plugins.trace.k6221_multi_sr830.LockInModel

Lock-in models supported by the 6221 trace plugin.

stoner_measurement.plugins.trace.k6221_multi_sr830.LockInReading

One lock-in reading plus the value used for auto-sensitivity decisions.

stoner_measurement.plugins.trace.k6221_multi_sr830.WaveformScanMode

Selectable 6221 sine-wave parameter to scan.

stoner_measurement.plugins.trace.k6221_pulse_delta.Keithley6221PulseDeltaPlugin

Measure a custom current sweep using native 6221/2182A Pulse Delta.

stoner_measurement.plugins.trace.keithley_2400.ComplianceMode

How the plugin should determine the 2400 compliance limit.

stoner_measurement.plugins.trace.keithley_2400.ConnectionMode

2-wire or 4-wire measurement wiring.

stoner_measurement.plugins.trace.keithley_2400.Keithley2400SweepPlugin

Run buffered source sweeps on a Keithley 2400 source-meter.

stoner_measurement.plugins.trace.keithley_2400.RangeMode

Whether a source/sense range is automatically selected or fixed.

stoner_measurement.plugins.trace.keithley_2400.SweepSourceMode

Independent-variable mode for the Keithley 2400 sweep.

stoner_measurement.plugins.trace.keithley_2400.TerminalMode

Front or rear Keithley 2400 terminals.

stoner_measurement.plugins.trace.keithley_2400.TriggerRouting

High-level trigger routing options exposed by the plugin UI.

stoner_measurement.plugins.trace.network_analyser.NetworkAnalyserTracePlugin

Acquire an instrument-controlled frequency or source-power sweep.

State plugins

stoner_measurement.plugins.state._magnet_controller_plugin.MagnetControllerPluginMixin

Shared engine-backed behaviour for magnet state scan/sweep plugins.

stoner_measurement.plugins.state._motor_controller_plugin.MotorControllerPluginMixin

Shared engine-backed behaviour for motor state scan/sweep plugins.

stoner_measurement.plugins.state._temperature_controller_plugin.TemperatureControllerPluginMixin

Shared engine-backed behaviour for temperature state scan/sweep plugins.

stoner_measurement.plugins.state._xray_diffractometer_plugin.XrayDiffractometerPluginMixin

Shared lifecycle and motion API for X-ray state-scan plugins.

stoner_measurement.plugins.state._xray_diffractometer_plugin.add_xray_motion_mode_row

Add the common axis-selection row and bind it to owner.axes.

stoner_measurement.plugins.state._xray_diffractometer_plugin.normalise_xray_motion_mode

Return a valid persisted X-ray motion mode.

stoner_measurement.plugins.state.base.StatePlugin

Abstract base class shared by StateScanPlugin and StateSweepPlugin.

stoner_measurement.plugins.state.output_selection.OutputSelectionTable

Select catalogue outputs and optionally override their trace roles.

State scan plugins

stoner_measurement.plugins.state_scan.base.StateScanPlugin

Abstract base class for plugins that control experimental state via discrete-step scanning.

stoner_measurement.plugins.state_scan.counter.CounterPlugin

A simple hardware-free scan axis for testing and examples.

stoner_measurement.plugins.state_scan.daqmx.DaqmxPointScanPlugin

Step through DAQmx output values and acquire statistics at every point.

stoner_measurement.plugins.state_scan.daqmx.DaqmxPointScanSettingsWidget

DAQmx settings adapted to one finite acquisition per scan point.

stoner_measurement.plugins.state_scan.k6221_2182a.Keithley6221PointScanPlugin

Scan DC current with independently optional primary and secondary meters.

stoner_measurement.plugins.state_scan.keithley_2400.ComplianceMode

How the plugin determines the SMU compliance limit.

stoner_measurement.plugins.state_scan.keithley_2400.ConnectionMode

2-wire or 4-wire measurement wiring.

stoner_measurement.plugins.state_scan.keithley_2400.Keithley2400PointScanPlugin

Step a Keithley 2400 through source points and capture per-point readings.

stoner_measurement.plugins.state_scan.keithley_2400.RangeMode

Whether a source/sense range is automatically selected or fixed.

stoner_measurement.plugins.state_scan.keithley_2400.SweepSourceMode

Source quantity controlled by the scan.

stoner_measurement.plugins.state_scan.keithley_2400.TerminalMode

Front or rear Keithley 2400 terminals.

stoner_measurement.plugins.state_scan.keithley_2400.TriggerRouting

High-level trigger routing options exposed by the plugin UI.

stoner_measurement.plugins.state_scan.magnet_controller.MagnetControllerScanPlugin

Step the magnet field through a list of set-points.

stoner_measurement.plugins.state_scan.motor_controller.MotorControllerScanPlugin

Move a motor through discrete absolute angles and run nested steps.

stoner_measurement.plugins.state_scan.network_analyser.NetworkAnalyserPointScanPlugin

Scan frequency or source power point-by-point and publish S-parameters.

stoner_measurement.plugins.state_scan.temperature_controller.TemperatureControllerScanPlugin

Step temperature through a list of set-points.

stoner_measurement.plugins.state_scan.xray_diffractometer.XrayDiffractometerScanPlugin

Scan an X-ray diffractometer angle through discrete set-points.

State sweep plugins

stoner_measurement.plugins.state_sweep.base.StateSweepPlugin

Base class for plugins that run a sub-sequence inside a continuous sweep loop.

stoner_measurement.plugins.state_sweep.magnet_controller.MagnetControllerSweepPlugin

Sweep the magnetic field continuously while collecting data in motion.

stoner_measurement.plugins.state_sweep.motor_controller.MotorControllerSweepPlugin

Sweep the motor angle continuously while collecting data in motion.

stoner_measurement.plugins.state_sweep.sweep_time.SweepTimePlugin

Use elapsed time itself as the swept variable.

stoner_measurement.plugins.state_sweep.temperature_controller.TemperatureControllerSweepPlugin

Sweep temperature continuously while collecting data in motion.

Monitor plugins

stoner_measurement.plugins.monitor.base.MonitorPlugin

Abstract base class for plugins that passively record experimental state.

stoner_measurement.plugins.monitor.magnet_controller.MagneticFieldMonitorPlugin

Publish live magnet-controller readings into the sequence value catalogue.

stoner_measurement.plugins.monitor.motor_controller.MotorAngleMonitorPlugin

Monitor motor position and motion state without commanding movement.

stoner_measurement.plugins.monitor.pressure_controller.PressureMonitorPlugin

Publish live pressure-controller and MFC values into the sequence namespace.

stoner_measurement.plugins.monitor.temperature_controller.TemperatureMonitorPlugin

Publish live temperature-controller readings into the sequence value catalogue.

Sequence plugins

stoner_measurement.plugins.sequence.base.SequencePlugin

Abstract base class for plugins that act as containers in the sequence tree.

stoner_measurement.plugins.sequence.base.TopLevelSequence

Concrete root container for the entire measurement sequence.

stoner_measurement.plugins.sequence.containers.RunParallelPlugin

Run each immediate nested step concurrently and wait for all to finish.

stoner_measurement.plugins.sequence.containers.RunSequentiallyPlugin

Run every nested step in order as one callable sub-sequence.

Transform plugins

stoner_measurement.plugins.transform._branch_splitting.BranchSplittingMixin

Provide configurable rising/falling branch detection and diagnostics.

stoner_measurement.plugins.transform._trace_selection.TraceChannelSelectionMixin

Mixin separating output trace context from optional advanced inputs.

stoner_measurement.plugins.transform.base.TransformPlugin

Abstract base class for plugins that transform or reduce data.

stoner_measurement.plugins.transform.branch_split.BranchSplitPlugin

Split a cyclic trace into rising and falling acquisition branches.

stoner_measurement.plugins.transform.curve_fit.CurveFitPlugin

Fit a user-defined model function to a selected trace.

stoner_measurement.plugins.transform.extremum_locator.ExtremumLocatorPlugin

Locate the x coordinate of a broad maximum or minimum in a trace.

stoner_measurement.plugins.transform.extremum_locator.locate_extremum

Return a smoothed, locally quadratic extremum coordinate.

stoner_measurement.plugins.transform.fit_function_library.FitFunctionLibraryWidget

Tree browser for bundled and per-user fitting-function modules.

stoner_measurement.plugins.transform.fit_function_library.FitFunctionTab

Fit Function tab that caps its editor at 25 lines or two-thirds height.

stoner_measurement.plugins.transform.fit_function_library.module_execution_context

Return module globals needed for package-relative imports.

stoner_measurement.plugins.transform.fourier_transform.FourierTransformPlugin

Transform selected trace data between time and frequency domains.

stoner_measurement.plugins.transform.savgol_filter.SavitzkyGolayPlugin

Smooth a trace or calculate derivatives using a Savitzky-Golay filter.

stoner_measurement.plugins.transform.symmetry_decomposition.SymmetryDecompositionPlugin

Decompose selected trace channels into symmetric and antisymmetric parts.

stoner_measurement.plugins.transform.voltage_offset.XOffsetRemovalPlugin

Remove a constant x-axis offset from selected x/y data.

stoner_measurement.plugins.transform.window_filter.WindowFilterPlugin

Smooth a selected trace by convolving it with a configurable window.

Command plugins

stoner_measurement.plugins.command.alert.AlertCommand

Show a blocking message box during a sequence.

stoner_measurement.plugins.command.base.CommandPlugin

Abstract base class for sequence-engine command plugins.

stoner_measurement.plugins.command.daqmx_set.DaqmxSetCommand

Set one DAQmx value and perform one synchronised point acquisition.

stoner_measurement.plugins.command.daqmx_set.DaqmxSetSettingsWidget

Single value control followed by the shared DAQmx point settings.

stoner_measurement.plugins.command.details.DetailsCommand

Store user, sample, project, and notes information for a measurement.

stoner_measurement.plugins.command.edit_function_scan.EditFunctionScanCommand

Change a later function-generator scan while a sequence is running.

stoner_measurement.plugins.command.if_command.IfCommand

Run nested sequence steps only when a Python expression is truthy.

stoner_measurement.plugins.command.keithley_set.Keithley2400SetCommand

Set a 2400 current or voltage and publish its single-point readings.

stoner_measurement.plugins.command.keithley_set.Keithley6221SetCommand

Set 6221 DC current with independently optional voltage measurements.

stoner_measurement.plugins.command.loop_control.BreakIfCommand

End the containing scan or sweep when a condition becomes true.

stoner_measurement.plugins.command.loop_control.ContinueIfCommand

Skip the rest of a scan or sweep iteration when a condition is true.

stoner_measurement.plugins.command.make_safe.MakeSafeCommand

Make the selected temperature, magnet, and motor systems safe.

stoner_measurement.plugins.command.network_analyser_set.NetworkAnalyserSetCommand

Perform one CW network-analyser set-and-measure operation.

stoner_measurement.plugins.command.plot_clear.PlotClearCommand

Clear all traces from the main plot window.

stoner_measurement.plugins.command.plot_forms.UnavailablePointData

A point expression failed or returned an unavailable scalar value.

stoner_measurement.plugins.command.plot_forms.axis_names

Read the stable client's public axes, falling back to legacy descriptions.

stoner_measurement.plugins.command.plot_forms.execute_points_form

Resolve shared scalar coordinates once and append explicit measured Z cells.

stoner_measurement.plugins.command.plot_forms.execute_trace_form

Capture live arrays and fixed Y once, then submit an atomic slice.

stoner_measurement.plugins.command.plot_forms.initialise_forms

Give additional forms independent fields without altering XY settings.

stoner_measurement.plugins.command.plot_forms.refresh_axis_combo

Refresh choices while retaining saved assignments, including unavailable ones.

stoner_measurement.plugins.command.plot_forms.restore_forms

Restore optional fields with compatible XY defaults for older JSON.

stoner_measurement.plugins.command.plot_forms.serialise_forms

Return independent JSON-compatible bindings, excluding live UI objects.

stoner_measurement.plugins.command.plot_markers.AddPlotMarkerCommand

Add a labelled marker at runtime-evaluated plot coordinates.

stoner_measurement.plugins.command.plot_markers.RemovePlotMarkersCommand

Remove all data markers from the main plot.

stoner_measurement.plugins.command.plot_points.PlotPointsCommand

Append live data points to one or more plot traces.

stoner_measurement.plugins.command.plot_trace.PlotTraceCommand

Plot a complete trace dataset in the main plot window.

stoner_measurement.plugins.command.pressure_gauge_channel.PressureGaugeChannelCommand

Enable or disable a pressure gauge channel using runtime expressions.

stoner_measurement.plugins.command.pressure_set_flow.PressureSetFlowCommand

Set a mass-flow-controller channel target during a sequence.

stoner_measurement.plugins.command.read_diffractometer.ReadDiffractometerCommand

Read the X-ray diffractometer and expose its detector counts.

stoner_measurement.plugins.command.read_electrometer.ReadElectrometerCommand

Take one fresh Keithley electrometer or picoammeter reading.

stoner_measurement.plugins.command.read_multimeter.ReadMultimeterCommand

Take one fresh reading from a Keithley 2000 or 2700 multimeter.

stoner_measurement.plugins.command.reconfigure.ReconfigureCommand

Connect and configure the checked sequence instances at runtime.

stoner_measurement.plugins.command.reconfigure.rebuild_delayed_configuration

Rebuild setup flags from enabled commands, including nested containers.

stoner_measurement.plugins.command.run_again.RunAgainCommand

Run an existing sequence step again at the command's current position.

stoner_measurement.plugins.command.save.BaseSaveWriter

Base class for concrete save-file writers.

stoner_measurement.plugins.command.save.NexusSaveWriter

Write a NeXus-style HDF5 file with NXentry and NXdata groups.

stoner_measurement.plugins.command.save.SaveCommand

Save traces or collected table data to a TDI or NeXus file.

stoner_measurement.plugins.command.save.SavePayload

Neutral data package passed from SaveCommand to file writers.

stoner_measurement.plugins.command.save.TdiSaveWriter

Write the existing TDI Format 2.0 tab-delimited text layout.

stoner_measurement.plugins.command.set_diffractometer.SetDiffractometerCommand

Set an X-ray diffractometer angle during a sequence.

stoner_measurement.plugins.command.set_engine_state.SetEngineStateCommand

Set, optionally await, and snapshot a controller target.

stoner_measurement.plugins.command.set_field.SetFieldCommand

Set the magnetic-field target during a sequence.

stoner_measurement.plugins.command.set_position.SetPositionCommand

Move the motor to an absolute angular position during a sequence.

stoner_measurement.plugins.command.set_temperature.SetTemperatureCommand

Set a temperature-control loop target during a sequence.

stoner_measurement.plugins.command.status.StatusCommand

Update the application status bar with a custom message.

stoner_measurement.plugins.command.wait.WaitCommand

Pause the sequence for a specified time.