msl.equipment.resources.vaisala.ptb330 package
Vaisala Barometer of type PTB330. The PTB330 barometer is available with one, two, or three barometer modules.
- class msl.equipment.resources.vaisala.ptb330.PTB330(record: EquipmentRecord)[source]
Bases:
PTU300Vaisala Barometer PTB330 series. The device manual is available here.
Note
Ensure the device is in STOP or SEND mode before initiating a connection to a PC.
The default settings for the RS232 connection are:
Baud rate = 4800
Data bits = 7
Stop bits = 1
Parity = EVEN
Flow control = None
Do not instantiate this class directly. Use the
connect()method to connect to the equipment.- Parameters:
record – A record from an Equipment-Register Database.
- set_units(desired_units: dict[str, str]) None[source]
Set units of specified quantities.
- Parameters:
desired_units –
Dictionary of quantities (as keys) and their unit (their value) as specified in the instrument manual on pages 15 and 73.
These may include the following (available options depend on the barometer components):
Pressure quantities: P, P3h, P1, P2, QNH, QFE, HCP, …
Pressure units: hPa, psi, inHg, torr, bar, mbar, mmHg, kPa, Pa, mmH2O, inH2O
Temperature quantities: T, TP1, TP2, TP3, …
Temperature units: ‘C, ‘F, or K (C and F are also supported but are returned as ‘C or ‘F)