stoner_measurement.instruments.mass_flow_controller.MassFlowController

class stoner_measurement.instruments.mass_flow_controller.MassFlowController(transport: BaseTransport, protocol: BaseProtocol)[source]

Bases: BaseInstrument

Abstract base class for mass-flow controllers and readout/controllers.

configure_batch(channel: int, rate: float, quantity: float) → None[source]

Configure a batch delivery workflow for channel.

configure_blend(master: int, slave: int, ratio_percent: float) → None[source]

Configure a blend workflow between master and slave.

abstractmethod get_capabilities() → MassFlowControllerCapabilities[source]

Return the static capability descriptor for this driver.

abstractmethod read_actual_value(channel: int = 1) → float[source]

Return the current measured value for channel.

abstractmethod read_range(channel: int = 1) → float[source]

Return the configured full-scale/range value for channel.

abstractmethod read_setpoint(channel: int = 1) → float[source]

Return the programmed setpoint for channel.

abstractmethod read_unit(channel: int = 1) → int | str[source]

Return the configured engineering-unit code for channel.

abstractmethod set_range(full_scale: float, channel: int = 1) → None[source]

Set the configured full-scale/range value for channel.

abstractmethod set_setpoint(value: float, channel: int = 1) → None[source]

Set the programmed setpoint for channel.

abstractmethod set_unit(unit_code: int | str, channel: int = 1) → None[source]

Set the configured engineering-unit code for channel.

set_valve_enabled(enabled: bool, channel: int = 1) → None[source]

Enable or disable valve/output control for channel.

validate_channel(channel: int) → None[source]

Raise ValueError if channel is unsupported.

valve_enabled(channel: int = 1) → bool[source]

Return True if valve/output control is enabled for channel.