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
PyExpLabSyslibrary, and implements the following commands (see thedevice documentationfor 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
Acknowledge, chr(6), \x06
Carriage return, chr(13), \r
Enquiry, chr(5), \x05
End text (Ctrl-c), chr(3), \x03
Line feed, chr(10), \n
Negative acknowledge, chr(21), \x15
Baud rate for serial communication.
Channel information, loaded from the configuration file.
Device configuration file
Status flag.
Serial port handler.
Physical address of the device file.
Time-out for serial connection error.
Methods
Initializes the
TPG_256Aobject.Loads the TPG-256A configuration from a file.
Connects to the TPG-256A Controller.
Closes the connection to the TPG-256A Controller.
Reads the gauges identification.
Reads the gauges status.
Reads the pressure measured by gauge number
gauge.Reads the pressure measured by all active gauges.
Returns the firmware version.