Tricontinent Api
This module provides a class for controlling TriContinent pumps.
ATTRIBUTE | DESCRIPTION |
---|---|
MAX_CHANNELS |
Maximum number of channels.
TYPE:
|
ACCEL_MULTIPLIER |
Acceleration multiplier.
TYPE:
|
BUSY |
Busy status codes.
TYPE:
|
IDLE |
Idle status codes.
TYPE:
|
READ_FORMAT |
Read format template.
TYPE:
|
WRITE_FORMAT |
Write format template.
TYPE:
|
Data |
Data type for the device.
TYPE:
|
BoolData |
Boolean data type for the device.
TYPE:
|
FloatData |
Float data type for the device.
TYPE:
|
IntData |
Integer data type for the device.
TYPE:
|
CLASS | DESCRIPTION |
---|---|
TriContinentDevice |
TriContinent pump device class. |
Documentation last updated: 2025-02-22
TriContinentDevice
TriContinentDevice(
port: str | None = None,
baudrate: int = 9600,
timeout: int = 1,
*,
init_timeout: int = 1,
data_type: NamedTuple = Data,
read_format: str = READ_FORMAT,
write_format: str = WRITE_FORMAT,
simulation: bool = False,
verbose: bool = False,
**kwargs,
)
Bases: SerialDevice
TriContinent pump device class.
ATTRIBUTE | DESCRIPTION |
---|---|
info |
Model and version information of the pump.
TYPE:
|
model |
Model of the pump.
TYPE:
|
version |
Version of the pump.
TYPE:
|
channel |
Channel number of the pump.
TYPE:
|
position |
Current position of the pump.
TYPE:
|
status |
Status of the pump.
TYPE:
|
start_speed |
Start speed of the pump.
TYPE:
|
speed |
Top speed of the pump.
TYPE:
|
acceleration |
Acceleration of the pump.
TYPE:
|
valve_position |
Valve position of the pump.
TYPE:
|
init_status |
Initialization status of the pump.
TYPE:
|
pump_config |
Pump configuration.
TYPE:
|
command_buffer |
Command buffer.
TYPE:
|
output_right |
Output side of the pump.
TYPE:
|
max_position |
Maximum position of the pump.
TYPE:
|
METHOD | DESCRIPTION |
---|---|
connect |
Connect to the pump |
query |
Query the pump |
setChannel |
Set the channel of the pump |
getStatus |
Get the status of the pump |
getPosition |
Get the current position of the pump |
getInfo |
Get the model and version information of the pump |
getState |
Get the state of the pump |
getStartSpeed |
Get the start speed of the pump |
getTopSpeed |
Get the top speed of the pump |
getValvePosition |
Get the valve position of the pump |
getAcceleration |
Get the acceleration of the pump |
getInitStatus |
Get the initialization status of the pump |
getPumpConfig |
Get the pump configuration |
setStartSpeed |
Set the start speed of the pump |
setTopSpeed |
Set the top speed of the pump |
setValvePosition |
Set the valve position of the pump |
setAcceleration |
Set the acceleration of the pump |
initialize |
Initialize the pump |
reverse |
Reverse the pump |
wait |
Wait for a specified duration |
repeat |
Repeat the last command for a specified number of cycles |
run |
Run the command buffer |
stop |
Stop the pump |
aspirate |
Aspirate a specified number of steps |
dispense |
Dispense a specified number of steps |
move |
Move the plunger by a specified number of steps |
moveBy |
Move the plunger by a specified number of steps |
moveTo |
Move the plunger to a specified position |
Initialize the TriContinent pump device.
PARAMETER | DESCRIPTION |
---|---|
port
|
The port to connect to. Defaults to None.
TYPE:
|
baudrate
|
The baudrate of the connection. Defaults to 9600.
TYPE:
|
timeout
|
The timeout for the connection. Defaults to 1.
TYPE:
|
init_timeout
|
The timeout for initialization. Defaults to 1.
TYPE:
|
data_type
|
The data type for the device. Defaults to Data.
TYPE:
|
read_format
|
The read format for the device. Defaults to READ_FORMAT.
TYPE:
|
write_format
|
The write format for the device. Defaults to WRITE_FORMAT.
TYPE:
|
simulation
|
Whether to simulate the device. Defaults to False.
TYPE:
|
verbose
|
Whether to print verbose output. Defaults to False.
TYPE:
|
aspirate
Aspirate a specified number of steps.
PARAMETER | DESCRIPTION |
---|---|
steps
|
The number of steps to aspirate.
TYPE:
|
blocking
|
Whether to block until the command is executed. Defaults to True.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
dispense
Dispense a specified number of steps.
PARAMETER | DESCRIPTION |
---|---|
steps
|
The number of steps to dispense.
TYPE:
|
blocking
|
Whether to block until the command is executed. Defaults to True.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
getAcceleration
Get the acceleration of the pump.
RETURNS | DESCRIPTION |
---|---|
int
|
The acceleration of the pump.
TYPE:
|
getInfo
Get the model and version information of the pump.
RETURNS | DESCRIPTION |
---|---|
str
|
The model and version information of the pump.
TYPE:
|
getInitStatus
Get the initialization status of the pump.
RETURNS | DESCRIPTION |
---|---|
bool
|
The initialization status of the pump.
TYPE:
|
getPosition
Get the current position of the pump.
RETURNS | DESCRIPTION |
---|---|
int
|
The current position of the pump.
TYPE:
|
getStartSpeed
Get the start speed of the pump.
RETURNS | DESCRIPTION |
---|---|
int
|
The start speed of the pump.
TYPE:
|
getState
Get the state of the pump.
RETURNS | DESCRIPTION |
---|---|
dict[str, int | bool]
|
dict[str, int|bool]: A dictionary containing the state of the pump. |
getStatus
Get the status of the pump.
RETURNS | DESCRIPTION |
---|---|
tuple[bool, str]
|
tuple[bool,str]: A tuple containing the busy status and the error code. |
getTopSpeed
Get the top speed of the pump.
RETURNS | DESCRIPTION |
---|---|
int
|
The top speed of the pump.
TYPE:
|
getValvePosition
Get the valve position of the pump.
RETURNS | DESCRIPTION |
---|---|
str
|
The valve position of the pump.
TYPE:
|
initialize
Initialize the pump.
PARAMETER | DESCRIPTION |
---|---|
output_right
|
Whether the output is on the right side.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
move
Move the plunger by a specified number of steps.
PARAMETER | DESCRIPTION |
---|---|
steps
|
The number of steps to move.
TYPE:
|
blocking
|
Whether to block until the command is executed. Defaults to True.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
moveBy
Move the plunger by a specified number of steps.
PARAMETER | DESCRIPTION |
---|---|
steps
|
The number of steps to move.
TYPE:
|
blocking
|
Whether to block until the command is executed. Defaults to True.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
moveTo
Move the plunger to a specified position.
PARAMETER | DESCRIPTION |
---|---|
position
|
The position to move to.
TYPE:
|
blocking
|
Whether to block until the command is executed. Defaults to True.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
repeat
Repeat the last command for a specified number of cycles.
PARAMETER | DESCRIPTION |
---|---|
cycles
|
The number of cycles to repeat the last command.
TYPE:
|
reverse
Reverse the pump.
PARAMETER | DESCRIPTION |
---|---|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
run
Run the command buffer.
PARAMETER | DESCRIPTION |
---|---|
command
|
The command to run. Defaults to None.
TYPE:
|
setAcceleration
Set the acceleration of the pump.
PARAMETER | DESCRIPTION |
---|---|
acceleration
|
The acceleration of the pump.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
setChannel
Set the channel of the pump.
PARAMETER | DESCRIPTION |
---|---|
channel
|
The channel number of the pump.
TYPE:
|
setStartSpeed
Set the start speed of the pump.
PARAMETER | DESCRIPTION |
---|---|
speed
|
The start speed of the pump.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
setTopSpeed
Set the top speed of the pump.
PARAMETER | DESCRIPTION |
---|---|
speed
|
The top speed of the pump.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|
setValvePosition
Set the valve position of the pump.
PARAMETER | DESCRIPTION |
---|---|
valve
|
The valve position of the pump.
TYPE:
|
immediate
|
Whether to execute the command immediately. Defaults to True.
TYPE:
|