pylabrobot.paa.kx2.KX2.scan_barcode#

async KX2.scan_barcode(read_time: float | None = None) → Barcode | None#

Fire the onboard barcode reader and return the decoded Barcode (or None on a no-read). Raises if the KX2 was constructed without a barcode_port.

Parameters:

read_time (float | None)

Return type:

Barcode | None