pylabrobot.formulatrix.mantis.MantisDevice.__init__#
- MantisDevice.__init__(name: str = 'Mantis', *, device_id: str | None = None, io: FTDI | None = None, rfid_io: FTDI | None = None, size_x: float = 175.0, size_y: float = 212.0, size_z: float = 136.0, declared_configuration_json: str | None = None, oem_config_directory: str | None = None, ftdi_library: str | None = None, show_actions: bool = True, simulation: bool = False)#
- Parameters:
name (str) – the resource name.
device_id (str | None) – the FTDI serial number. None uses the first Mantis found.
io (FTDI | None) – an already-built
FTDIfor interface B, used instead of building one.rfid_io (FTDI | None) – an already-built
FTDIfor interface A, the RFID reader.size_x (float) – width, in mm.
size_y (float) – depth, in mm.
size_z (float) – height, in mm.
declared_configuration_json (str | None) – a file
save_configurationwrote; setup refuses a device that disagrees on what is fitted. Simulated, the configuration; None usesRECORDING_MANTIS_V4.oem_config_directory (str | None) – the unit’s vendor
Data/Device/Configsfolder; where it and the declared file both hold a unit value, they must agree.ftdi_library (str | None) – “libftdi” or “d2xx”; None picks D2XX on Windows when FTDI’s D2XX library loads, else libftdi.
show_actions (bool) – whether the v4’s LED bar shows each action’s colour, and the idle animation between actions.
simulation (bool) – build a simulated Mantis, with no link.
- Raises:
ValueError – if
simulationis given withdevice_id,io,rfid_ioorftdi_library` –