pylabrobot.formulatrix.mantis.driver.master.MantisDriver#
- class pylabrobot.formulatrix.mantis.driver.master.MantisDriver(*, device_id: str | None = None, io: FTDI | None = None, rfid_io: FTDI | None = None, name: str = 'Mantis', declared_configuration_json: str | None = None, oem_config_directory: str | None = None, ftdi_library: str | None = None, show_actions: bool = True)#
Bases:
objectTalks to a Mantis: one command in flight, events logged as they come.
Attributes
Seconds a queue write is sent again under a new item while the sequencer's queue is full.
Seconds one attempt of a command waits for its reply when
timeoutis None.Methods
__init__(*[, device_id, io, rfid_io, name, ...])discover()Read the configuration into
configuration, check it against the declared one, then build the features it lists, read the pump's sensor calibration intoconfiguration, and build the RFID reader if it answers on interface A.request_absolute_encoder_position(*, motor)An arm motor's raw absolute encoder reading, from board 11; kept across power-off.
request_encoder_position(*, motor)A motor's servo encoder position, in the device's units.
request_firmware_version(*[, board])The firmware version of a board.
request_following_error_configuration(*, motor)A motor's following-error check: (enabled, the largest following error), device units.
request_motor_configuration(*, motor)A motor's configuration, its six fields as the device sends them.
request_motor_currents(*, motor)A motor's three currents, in the order the device sends them.
request_motor_limits(*, motor)A motor's (lower, upper) limit.
request_motor_position(*, motor)A motor's demand position, in the device's units: where the controller drives it.
request_motor_status(*, motor)A motor's status word;
MOTOR_STATUS_ERROR_BITSnames the bits that report a fault.The name the motion firmware reports,
LiquidHandleron the v4 we have run.save_configuration(path[, indent])Write what this device reported to a file, to be declared later (
declared_configuration_json), with the unit's blocks; none taken from a recording.setup(*[, skip_arm])Open the link if it is not open, read the device's configuration and check it, then bring the arm and Z up (
Arm.initialize).stop()Fail the command in flight and every event waiter; abort the sequencer, stop the motors and park a v4 arm brought up; release the plate clamp, turn the LED bar off, stop reading the link and close it.