peristaltic_dispense

Description

Dispenses the given volume with a peristaltic pump.

Signature

peristaltic_dispense(self, name: str, ml: float, reverse: bool = False, vel: Optional[int] = None, accel: Optional[int] = None, wait: bool = True) -> CmdToken

Parameters

name: str

The name of the pump to dispense from.


ml: float

The volume to dispense in units of mL.


reverse: bool

Run the pump in the opposite direction.


vel: int, optional

The velocity of the pump during the dispense in units of cts/s. If not given, the velocity will be the pump's default velocity set during initialization (or explicitly afterwards with NorthC9.set_peristaltic_speed).


accel: int, optional

The acceleration of the pump during the dispense in units of cts/s². If not given, the acceleration will be the pump's default acceleration det during initialization (or explicitly afterwards with NorthC9.set_peristaltic_speed).


wait: bool, optional

If True, this command blocks until the move is finished.

Returns

CmdToken

A CmdToken object that can be used to follow up on the status of the move or wait for it to finish if wait = False.

Example