stoner_measurement.instruments.mks.controllers.MKSPR4000BS

class stoner_measurement.instruments.mks.controllers.MKSPR4000BS(transport: BaseTransport, protocol: BaseProtocol | None = None)[source]

Bases: MassFlowController

Driver for the MKS PR4000B-S single-channel controller.

DISPLAY_NAME = 'MKS PR4000B-S'
get_capabilities() → MassFlowControllerCapabilities[source]

Return the static capability descriptor for this driver.

identify() → str[source]

Return a static identifier for the PR4000B-S family.

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

Return the current measured value for channel.

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

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

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

Return the programmed setpoint for channel.

read_status1() → int[source]
read_status2() → int[source]
read_status3() → int[source]
read_status4() → int[source]
read_status_bytes() → tuple[int, int, int, int][source]

Return all four PR4000B-S status bytes.

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

Return the configured engineering-unit code for channel.

read_unit_name(channel: int = 1) → str[source]

Return a friendly name for the configured engineering unit.

reset() → None[source]

Do not expose the PR4000B-S defaults reset via the generic API.

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

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

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

Set the programmed setpoint for channel.

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.

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

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