pylabrobot.formulatrix.mantis.driver.features.plate_clamp.PlateClamp#
- class pylabrobot.formulatrix.mantis.driver.features.plate_clamp.PlateClamp(*, driver: MantisDriver, levels: Dict[int, Tuple[float, int]] | None = None, auxiliary_output: int | None = None, pump: Pump | None = None)#
Bases:
objectThe plate clamp, on board 12 or on a pressure-board output, with the same methods.
On board 12, locking waits until the device reports clamping done. On a pressure-board output the valve’s readback is read, never plate contact; it has no lock levels and no clamp state. Locking it starts the pump when needed, and unlocking restores a pump this clamp started; a failed lock and shutdown release the valve.
Attributes
The pressure-board output switching the clamp's valve; None for a clamp on board 12.
Methods
__init__(*, driver[, levels, ...])lock(*[, level])On board 12, release the clamp, lock it at
leveland wait until it reads clamping done; if it does not, it is released again before raising.request_locked(*[, attempts])Whether the clamp holds: on board 12 whether it reports clamping done; on a pressure-board output whether its valve reads switched on, which is not plate contact.
request_state(*[, attempts])The clamp's state (GetMotorClampState);
CLAMP_STATE_DESCRIPTIONSsays what each means.unlock()Release the clamp: on board 12 wait until it reads unclamping done; on a pressure-board output switch the valve off and restore a pump this clamp started.