Peltier
This module holds the Peltier class.
ATTRIBUTE | DESCRIPTION |
---|---|
MAX_LEN |
maximum length of buffer
TYPE:
|
READ_FORMAT |
read format
TYPE:
|
TempData |
temperature data
TYPE:
|
CLASS | DESCRIPTION |
---|---|
Peltier |
Peltier class |
Documentation last updated: 2025-02-22
Peltier
Peltier(
port: str,
power_threshold: float = 20,
stabilize_timeout: float = 10,
tolerance: float = 1.5,
*,
baudrate: int = 115200,
verbose: bool = False,
**kwargs,
)
Bases: HeaterMixin
, Maker
Peltier class
ATTRIBUTE | DESCRIPTION |
---|---|
buffer |
buffer data
TYPE:
|
records |
records data
TYPE:
|
record_event |
record event
TYPE:
|
tolerance |
tolerance
TYPE:
|
power_threshold |
power threshold
TYPE:
|
stabilize_timeout |
stabilize timeout
TYPE:
|
buffer_df |
buffer data as DataFrame
TYPE:
|
records_df |
records data as DataFrame
TYPE:
|
METHOD | DESCRIPTION |
---|---|
clearCache |
clear data cache |
getData |
get data from device |
record |
record data |
stream |
stream data |
connect |
connect to device |
reset |
reset device |
atTemperature |
check if at temperature |
getTemperature |
get temperature |
setTemperature |
set temperature |
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 tool |
Initialize the class
PARAMETER | DESCRIPTION |
---|---|
port
|
port
TYPE:
|
power_threshold
|
power threshold. Defaults to 20.
TYPE:
|
stabilize_timeout
|
stabilize timeout. Defaults to 10.
TYPE:
|
tolerance
|
tolerance. Defaults to 1.5.
TYPE:
|
baudrate
|
baudrate. Defaults to 115200.
TYPE:
|
verbose
|
verbosity. Defaults to False.
TYPE:
|
atTemperature
atTemperature(
temperature: float | None = None,
*,
tolerance: float | None = None,
power_threshold: float | None = None,
stabilize_timeout: float | None = None,
) -> bool
Check if at temperature
PARAMETER | DESCRIPTION |
---|---|
temperature
|
target temperature. Defaults to None.
TYPE:
|
tolerance
|
tolerance. Defaults to None.
TYPE:
|
power_threshold
|
power threshold. Defaults to None.
TYPE:
|
stabilize_timeout
|
stabilize timeout. Defaults to None.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
at temperature
TYPE:
|
getData
Get data from device
RETURNS | DESCRIPTION |
---|---|
TempData
|
data from device
TYPE:
|
getTemperature
Get temperature
RETURNS | DESCRIPTION |
---|---|
float
|
temperature
TYPE:
|
record
Record data
PARAMETER | DESCRIPTION |
---|---|
on
|
record data
TYPE:
|
show
|
print data. Defaults to False.
TYPE:
|
clear_cache
|
clear cache. Defaults to False.
TYPE:
|