stoner_measurement.plugins.command.pressure_set_flow.PressureSetFlowCommand¶
- class stoner_measurement.plugins.command.pressure_set_flow.PressureSetFlowCommand(parent=None)[source]¶
Bases:
SetEngineStateCommandSet a mass-flow-controller channel target during a sequence.
Use this command to change the requested flow on one channel of the active mass flow controller (MFC). If necessary, the command connects the preferred configured MFC before setting the target. It can either continue after the first state read or wait until the measured flow is within the configured absolute tolerance of the requested flow.
The configuration tab provides MFC channel expression, Flow tolerance expression, Setpoint expression, and Wait expression controls. Each numeric field may use values from the sequence namespace and is evaluated when the step runs. Flow values use the units reported by the configured controller. The wait expression defaults to
True.When execution finishes, the command publishes Flow, Flow Setpoint, and At Target scalar outputs from the selected channel’s final state. At Target is represented as
1.0or0.0.- Variables:
channel_expr (str) – Integer expression selecting the one-based MFC channel. Defaults to
"1".setpoint_expr (str) – Numeric expression for the requested flow. Defaults to
"0.0".tolerance_expr (str) – Numeric expression for the non-negative absolute flow tolerance. Defaults to
"0.01".wait_expr (str) – Boolean expression controlling whether execution waits for the measured flow to reach the target. Defaults to
"True".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
pressure_set_flowin the sequence, use the QtConsole to inspect or edit it before running. Substitute your instance name if different; result data reflects completed steps:pressure_set_flow.channel_expr = "1" pressure_set_flow.setpoint_expr = "requested_flow"