Sartorius Api
This module contains the SartoriusDevice class.
ATTRIBUTE | DESCRIPTION |
---|---|
READ_FORMAT |
command template for reading
TYPE:
|
WRITE_FORMAT |
command template for writing
TYPE:
|
Data |
data type for communication
TYPE:
|
IntData |
data type for communication
TYPE:
|
STEP_RESOLUTION |
minimum number of steps to have tolerable errors in volume
TYPE:
|
RESPONSE_TIME |
delay between sending a command and receiving a response, in seconds
TYPE:
|
CLASS | DESCRIPTION |
---|---|
SartoriusDevice |
Sartorius pipette device class |
FUNCTION | DESCRIPTION |
---|---|
interpolate_speed |
Calculates the best parameters for volume and speed |
Documentation last updated: 2025-02-22
RESPONSE_TIME
module-attribute
Delay between sending a command and receiving a response, in seconds
STEP_RESOLUTION
module-attribute
Minimum number of steps to have tolerable errors in volume
SartoriusDevice
SartoriusDevice(
port: str | None = None,
baudrate: int = 9600,
timeout: int = 2,
*,
channel: int = 1,
step_resolution: int = STEP_RESOLUTION,
response_time: float = RESPONSE_TIME,
tip_inset_mm: int = 12,
tip_capacitance: int = 276,
init_timeout: int = 2,
data_type: NamedTuple = Data,
read_format: str = READ_FORMAT,
write_format: str = WRITE_FORMAT,
simulation: bool = False,
verbose: bool = False,
**kwargs,
)
Bases: SerialDevice
Sartorius pipette device class
ATTRIBUTE | DESCRIPTION |
---|---|
info |
Sartorius model info
TYPE:
|
model |
model of the pipette
TYPE:
|
version |
version of the pipette
TYPE:
|
total_cycles |
total number of cycles of the pipette
TYPE:
|
volume_resolution |
volume resolution of the pipette
TYPE:
|
step_resolution |
minimum number of steps to have tolerable errors in volume
TYPE:
|
capacitance |
capacitance as measured at the end of the pipette
TYPE:
|
position |
current position of the pipette
TYPE:
|
speed_code_in |
speed code for aspirating
TYPE:
|
speed_code_out |
speed code for dispensing
TYPE:
|
status |
status of the pipette
TYPE:
|
channel |
channel id
TYPE:
|
response_time |
delay between sending a command and receiving a response, in seconds
TYPE:
|
tip_capacitance |
threshold above which a conductive pipette tip is considered to be attached
TYPE:
|
tip_inset_mm |
length of pipette that is inserted into the pipette tip
TYPE:
|
tip_length |
length of the pipette tip
TYPE:
|
capacity |
Capacity of the pipette
TYPE:
|
home_position |
Home position of the pipette
TYPE:
|
max_position |
Maximum position of the pipette
TYPE:
|
tip_eject_position |
Tip eject position of the pipette
TYPE:
|
limits |
Lower and upper step limits of the pipette
TYPE:
|
preset_speeds |
Preset speeds available for the pipette
TYPE:
|
METHOD | DESCRIPTION |
---|---|
connect |
Connect to the device |
query |
Query the device |
getCapacitance |
Get the capacitance as measured at the end of the pipette |
getErrors |
Get errors from the device |
getPosition |
Get the current position of the pipette |
getStatus |
Get the status of the pipette |
isTipOn |
Check and return whether a pipette tip is attached |
getInfo |
Get details of the Sartorius pipette model |
getModel |
Get the model of the pipette |
getVolumeResolution |
Get the volume resolution of the pipette |
getInSpeedCode |
Get the speed code for aspirating |
getOutSpeedCode |
Get the speed code for dispensing |
getVersion |
Get the version of the pipette |
getLifetimeCycles |
Get the total number of cycles of the pipette |
setInSpeedCode |
Set the speed code for aspirating |
setOutSpeedCode |
Set the speed code for dispensing |
setChannelID |
Set the channel ID |
aspirate |
Aspirate desired volume of reagent into pipette |
blowout |
Blowout liquid from tip |
dispense |
Dispense desired volume of reagent |
eject |
Eject the pipette tip |
home |
Return plunger to home position |
move |
Move the plunger either up or down by a specified number of steps |
moveBy |
Move the plunger by a specified number of steps |
moveTo |
Move the plunger to a specified position |
zero |
Zero the plunger position |
reset |
Reset the pipette |
Initialize the Sartorius pipette device
PARAMETER | DESCRIPTION |
---|---|
port
|
COM port address. Defaults to None.
TYPE:
|
baudrate
|
baudrate of the device. Defaults to 9600.
TYPE:
|
timeout
|
timeout for communication. Defaults to 2.
TYPE:
|
channel
|
channel id. Defaults to 1.
TYPE:
|
step_resolution
|
minimum number of steps to have tolerable errors in volume. Defaults to STEP_RESOLUTION.
TYPE:
|
response_time
|
delay between sending a command and receiving a response, in seconds. Defaults to RESPONSE_TIME.
TYPE:
|
tip_inset_mm
|
length of pipette that is inserted into the pipette tip. Defaults to 12.
TYPE:
|
tip_capacitance
|
threshold above which a conductive pipette tip is considered to be attached. Defaults to 276.
TYPE:
|
init_timeout
|
timeout for initialization. Defaults to 2.
TYPE:
|
data_type
|
data type for communication. Defaults to Data.
TYPE:
|
read_format
|
read format for communication. Defaults to READ_FORMAT.
TYPE:
|
write_format
|
write format for communication. Defaults to WRITE_FORMAT.
TYPE:
|
simulation
|
simulation mode. Defaults to False.
TYPE:
|
verbose
|
verbose mode. Defaults to False.
TYPE:
|
aspirate
Aspirate desired volume of reagent into pipette
PARAMETER | DESCRIPTION |
---|---|
steps
|
number of steps to aspirate
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
blowout
Blowout liquid from tip
PARAMETER | DESCRIPTION |
---|---|
home
|
return to home position. Defaults to True.
TYPE:
|
position
|
position to move to. Defaults to None.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
dispense
Dispense desired volume of reagent
PARAMETER | DESCRIPTION |
---|---|
steps
|
number of steps to dispense
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
eject
Eject the pipette tip
PARAMETER | DESCRIPTION |
---|---|
home
|
return to home position. Defaults to True.
TYPE:
|
position
|
position to move to. Defaults to None.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
getCapacitance
Get the capacitance as measured at the end of the pipette
RETURNS | DESCRIPTION |
---|---|
int
|
capacitance as measured at the end of the pipette
TYPE:
|
getErrors
Get errors from the device
RETURNS | DESCRIPTION |
---|---|
str
|
errors from the device
TYPE:
|
getInSpeedCode
Get the speed code for aspirating
RETURNS | DESCRIPTION |
---|---|
int
|
speed code for aspirating
TYPE:
|
getInfo
getInfo(*, model: str | None = None) -> ModelInfo
Get details of the Sartorius pipette model
PARAMETER | DESCRIPTION |
---|---|
model
|
model name. Defaults to None.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ModelInfo
|
lib.ModelInfo: Sartorius model info |
getLifetimeCycles
Get the total number of cycles of the pipette
RETURNS | DESCRIPTION |
---|---|
int
|
total number of cycles of the pipette
TYPE:
|
getModel
Get the model of the pipette
RETURNS | DESCRIPTION |
---|---|
str
|
model of the pipette
TYPE:
|
getOutSpeedCode
Get the speed code for dispensing
RETURNS | DESCRIPTION |
---|---|
int
|
speed code for dispensing
TYPE:
|
getPosition
Get the current position of the pipette
RETURNS | DESCRIPTION |
---|---|
int
|
current position of the pipette
TYPE:
|
getStatus
Get the status of the pipette
RETURNS | DESCRIPTION |
---|---|
int
|
status of the pipette
TYPE:
|
getVersion
Get the version of the pipette
RETURNS | DESCRIPTION |
---|---|
str
|
version of the pipette
TYPE:
|
getVolumeResolution
Get the volume resolution of the pipette
RETURNS | DESCRIPTION |
---|---|
float
|
volume resolution of the pipette
TYPE:
|
home
Return plunger to home position
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
isTipOn
Check and return whether a pipette tip is attached
RETURNS | DESCRIPTION |
---|---|
bool
|
whether a pipette tip is attached
TYPE:
|
move
Move the plunger either up or down by a specified number of steps
PARAMETER | DESCRIPTION |
---|---|
steps
|
number of steps to move
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
moveBy
Move the plunger by a specified number of steps
PARAMETER | DESCRIPTION |
---|---|
steps
|
number of steps to move
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
moveTo
Move the plunger to a specified position
PARAMETER | DESCRIPTION |
---|---|
position
|
position to move to
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
setChannelID
Set the channel ID
PARAMETER | DESCRIPTION |
---|---|
channel
|
channel ID
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
setInSpeedCode
Set the speed code for aspirating
PARAMETER | DESCRIPTION |
---|---|
value
|
speed code
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
setOutSpeedCode
Set the speed code for dispensing
PARAMETER | DESCRIPTION |
---|---|
value
|
speed code
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
response from the device
TYPE:
|
interpolate_speed
interpolate_speed(
volume: int,
speed: int,
*,
speed_presets: tuple[int | float],
volume_resolution: float,
step_resolution: int = STEP_RESOLUTION,
time_resolution: float = RESPONSE_TIME,
) -> dict[str, int | float] | None
Calculates the best parameters for volume and speed
PARAMETER | DESCRIPTION |
---|---|
volume
|
volume to be transferred
TYPE:
|
speed
|
speed at which liquid is transferred
TYPE:
|
speed_presets
|
preset speeds available
TYPE:
|
volume_resolution
|
volume resolution of pipette (i.e. uL per step)
TYPE:
|
step_resolution
|
minimum number of steps to have tolerable errors in volume. Defaults to STEP_RESOLUTION.
TYPE:
|
time_resolution
|
minimum communication / time delay. Defaults to RESPONSE_TIME.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
dict
|
dictionary of best parameters
TYPE:
|