KellerSeries33X
Controls a Keller Series 33X pressure transmitter from Python. The device is read via the Keller binary protocol.
This class inherits from MeasmaticDevice.
property configuration
The configuration of the pressure sensor.
Returns
| Type |
Description |
| Any |
The device configuration (.NET type Atv.Framework.Devices.PressureSensor.KellerSeries33XConfiguration ). |
Example
sensor = measmatic.get_device('device-keller')
config = sensor.configuration
method initialize_and_unlock(deviceIdCode: Any, group: Any, year: Any, week: Any)
Initializes and unlocks the sensor (Keller function 48) and returns its identification.
Parameters
| Name |
Description |
| deviceIdCode |
Out parameter, returned as part of the result tuple. The device ID code (class) of the sensor. |
| group |
Out parameter, returned as part of the result tuple. The device group of the sensor. |
| year |
Out parameter, returned as part of the result tuple. The year of the firmware version. |
| week |
Out parameter, returned as part of the result tuple. The week of the firmware version. |
Example
sensor = measmatic.get_device('device-keller')
device_id_code, group, year, week = sensor.initialize_and_unlock()
method read_active_pressure_channel()
Reads which pressure channels are active.
Returns
| Type |
Description |
| int |
Bit mask of the active pressure channels: bit 1 is P1, bit 2 is P2. |
Example
sensor = measmatic.get_device('device-keller')
channels = sensor.read_active_pressure_channel()
method read_active_temperature_channel()
Reads which temperature channels are active.
Returns
| Type |
Description |
| int |
Bit mask of the active temperature channels: bit 3 is T (temperature sensor), bit 4 is TOB1 |
| (temperature of pressure sensor P1), bit 5 is TOB2 (temperature of pressure sensor P2). |
|
Example
sensor = measmatic.get_device('device-keller')
channels = sensor.read_active_temperature_channel()
method read_pressure(pressureChannel: int = 1)
Reads the pressure of a pressure channel. An error is raised for channels other than 1 and 2.
Parameters
| Name |
Description |
| pressureChannel |
The pressure channel: 1 for P1 or 2 for P2. Default: 1 |
Returns
| Type |
Description |
| float |
The measured pressure in the unit configured in the sensor. |
Example
sensor = measmatic.get_device('device-keller')
pressure = sensor.read_pressure(1)
method read_serial_number()
Reads the serial number of the sensor.
Returns
| Type |
Description |
| int |
The serial number of the sensor. |
Example
sensor = measmatic.get_device('device-keller')
serial = sensor.read_serial_number()
method read_temperature(temperatureChannel: int = 4)
Reads the temperature of a temperature channel. An error is raised for channels other than 3, 4 and 5.
Parameters
| Name |
Description |
| temperatureChannel |
The temperature channel: 3 for T (additional temperature sensor), 4 for TOB1 (temperature of pressure Default: 4 |
Returns
| Type |
Description |
| float |
The measured temperature in the unit configured in the sensor. |
Example
sensor = measmatic.get_device('device-keller')
temperature = sensor.read_temperature(4)
method zero(command: int = 0)
Sets or resets the zero point of a pressure channel (Keller function 95).
Parameters
| Name |
Description |
| command |
The zero command: 0 sets the zero point of P1, 1 resets the zero point of P1 to the standard value, Default: 0 |
Example
sensor = measmatic.get_device('device-keller')
sensor.zero(0)