pylabrobot.machines.backends.usb.USBBackend.__init__#
- abstract USBBackend.__init__(id_vendor: int, id_product: int, device_address: int | None = None, serial_number: str | None = None, packet_read_timeout: int = 3, read_timeout: int = 30, write_timeout: int = 30)#
Initialize a USBBackend.
- Parameters:
id_vendor (int) – The USB vendor ID of the machine.
id_product (int) – The USB product ID of the machine.
device_address (int | None) – The USB device_address of the machine. If
None
, use the first device found. This is useful for machines that have no unique serial number, such as the Hamilton STAR.serial_number (str | None) – The serial number of the machine. If
None
, use the first device found.packet_read_timeout (int) – The timeout for reading packets from the machine in seconds.
read_timeout (int) – The timeout for reading from the machine in seconds.
write_timeout (int) – The timeout for writing to the machine in seconds.