TPG_256A

Description

class tpg_256a_pressure_monitor.TPG_256A.TPG_256A(serial_port: str = None, baud_rate: int = None, connect: bool = False, timeout: float = None, config_file: str = None)[source]

Driver implementation for the Pfeiffer TPG-256A. The device is a six-channel pressure readout and monitor controller. The driver has been adapted to Python3 from the PyExpLabSys library, and implements the following commands (see the device documentation for more information):

Mnemonic

Description

PNR

Program number (firmware version)

PR[1 … 6]

Pressure measurement (measurement data) gauge [1 … 6]

TID

Transmitter identification (gauge identification)

SEN,0,0,0,0,0,0

Gauge status

Attributes

TPG_256A.ACK

Acknowledge, chr(6), \x06

TPG_256A.CR

Carriage return, chr(13), \r

TPG_256A.ENQ

Enquiry, chr(5), \x05

TPG_256A.ETX

End text (Ctrl-c), chr(3), \x03

TPG_256A.LF

Line feed, chr(10), \n

TPG_256A.NAK

Negative acknowledge, chr(21), \x15

TPG_256A.baud_rate

Baud rate for serial communication.

TPG_256A.channel_info

Channel information, loaded from the configuration file.

TPG_256A.config_file

Device configuration file

TPG_256A.connected

Status flag.

TPG_256A.serial

Serial port handler.

TPG_256A.serial_port

Physical address of the device file.

TPG_256A.timeout

Time-out for serial connection error.

Methods

TPG_256A.__init__

Initializes the TPG_256A object.

TPG_256A.config

Loads the TPG-256A configuration from a file.

TPG_256A.connect

Connects to the TPG-256A Controller.

TPG_256A.disconnect

Closes the connection to the TPG-256A Controller.

TPG_256A.gauge_identification

Reads the gauges identification.

TPG_256A.gauge_status

Reads the gauges status.

TPG_256A.pressure_gauge

Reads the pressure measured by gauge number gauge.

TPG_256A.pressure_gauges

Reads the pressure measured by all active gauges.

TPG_256A.program_number

Returns the firmware version.