AlicatMC#

class AlicatMC(
visa_resource: str | VisaConfig,
device_id: str = 'A',
)[source]#

Bases: FlowControllerDriverBase

Alicat MC-series mass-flow controller (MC-100SCCM and related MC models).

Communicates in RS-232 polling mode. device_id is the single-letter address (A–Z) configured on the device; default is "A". Default baud is 19200 with 8data-1stop-none_parity-none_flow Termination is always carriage return.

Attributes

GAS_KEY

mass_flow

Current mass flow reading in the device's configured engineering units.

pressure

Current absolute pressure reading in the device's configured engineering units.

process_value

Current process value.

process_value_source

Key constant for the process value measurement.

setpoint

Current setpoint in the device's configured engineering units.

volumetric_flow

Current volumetric flow reading in the device's configured engineering units.

unit_id

known_gas_types

measurement_headings

Methods

cancel_valve_hold

Release any active valve hold and return to normal setpoint control.

close

Close the VISA transport.

define_gas_mixture

Allows defining an arbitrary gas mixture of 2-5 components.

get_flow_data

Poll the device for a single measurement frame.

get_flow_sample_metadata

Return measurement field descriptors; cached after first call unless refresh=True.

hold_valve_at_position

Hold the valve at its current position.

hold_valve_closed

Hold the valve closed.

list_gas_types

Return all gas types the device supports; cached after first call unless refresh=True.

open

Open the VISA transport.

select_working_fluid

Select the active working fluid (gas) by name and return the confirmed fluid name.

set_loop_control_variable

Set the loop control variable (process value source) and update the cache.

set_setpoint

Command a float setpoint in the device's configured engineering units.

set_setpoint_int

Command a setpoint using integer encoding for the given full-scale range and minimum.

tare_barometer

Zero the barometer reading; device must support barometer tare.

tare_flow

Zero the flow reading; device must have zero flow and must support tare.