Sentron
This module provides a class for the Sentron pH meter.
ATTRIBUTE | DESCRIPTION |
---|---|
MAX_LEN |
Maximum length of the data buffer
TYPE:
|
READ_FORMAT |
Format for reading data
TYPE:
|
pHData |
NamedTuple for pH data
TYPE:
|
CLASS | DESCRIPTION |
---|---|
SI600 |
Sentron pH meter class |
Documentation last updated: 2025-02-22
SI600
SI600(
port: str,
stabilize_timeout: float = 10,
pH_tolerance: float = 1.5,
temp_tolerance: float = 1.5,
*,
baudrate: int = 9600,
verbose: bool = False,
**kwargs,
)
Bases: Measurer
Sentron pH meter
ATTRIBUTE | DESCRIPTION |
---|---|
pH_tolerance |
Tolerance for pH
TYPE:
|
temp_tolerance |
Tolerance for temperature
TYPE:
|
stabilize_timeout |
Time to wait for the device to stabilize
TYPE:
|
buffer |
data buffer for the device
TYPE:
|
buffer_df |
data buffer as a DataFrame
TYPE:
|
records |
records for the device
TYPE:
|
records_df |
records as a DataFrame
TYPE:
|
record_event |
event for recording data
TYPE:
|
program |
program to run
TYPE:
|
runs |
dictionary of runs
TYPE:
|
n_runs |
number of runs
TYPE:
|
connection_details |
connection details for the device
TYPE:
|
device |
device object that communicates with physical tool
TYPE:
|
flags |
flags for the class
TYPE:
|
is_busy |
whether the device is busy
TYPE:
|
is_connected |
whether the device is connected
TYPE:
|
verbose |
verbosity of class
TYPE:
|
METHOD | DESCRIPTION |
---|---|
getData |
Get pH and temperature data |
atPH |
Check if the device is at the target pH |
atTemperature |
Check if the device is at the target temperature |
getPH |
Get pH |
getTemperature |
Get temperature |
record |
Record data |
stream |
Stream data |
connect |
connect to the device |
disconnect |
disconnect from the device |
execute |
execute task |
resetFlags |
reset all flags to class attribute _default_flags |
run |
alias for execute() |
shutdown |
shutdown procedure for the device |
Initialize the Sentron pH meter
PARAMETER | DESCRIPTION |
---|---|
port
|
Serial port
TYPE:
|
stabilize_timeout
|
Time to wait for the device to stabilize
TYPE:
|
pH_tolerance
|
Tolerance for pH
TYPE:
|
temp_tolerance
|
Tolerance for temperature
TYPE:
|
baudrate
|
Baudrate for serial communication
TYPE:
|
verbose
|
Print verbose output
TYPE:
|
atPH
Check if the device is at the target pH
PARAMETER | DESCRIPTION |
---|---|
pH
|
Target pH
TYPE:
|
tolerance
|
Tolerance for pH
TYPE:
|
stabilize_timeout
|
Time to wait for the device to stabilize
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
True if the device is at the target pH
TYPE:
|
atTemperature
atTemperature(
temperature: float,
*,
tolerance: float | None = None,
stabilize_timeout: float = 0,
) -> bool
Check if the device is at the target temperature
PARAMETER | DESCRIPTION |
---|---|
temperature
|
Target temperature
TYPE:
|
tolerance
|
Tolerance for temperature
TYPE:
|
stabilize_timeout
|
Time to wait for the device to stabilize
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
True if the device is at the target temperature
TYPE:
|
getData
Get pH and temperature data
RETURNS | DESCRIPTION |
---|---|
pHData
|
pH and temperature data
TYPE:
|