CognexDataMan280#
Controls a Cognex DataMan 280 barcode / data code reader from Python. This class inherits from MeasmaticDevice.
method read()#
Triggers a read and returns the code string as configured in the DataMan 280 device.
Returns#
| Type | Description |
|---|---|
| str | The decoded code string. |
Example#
reader = measmatic.get_device('device-id-reader')
code = reader.read()
method switch_aimer(state: bool)#
Enables or disables the aimer light of the DataMan 280.
Parameters#
| Name | Description |
|---|---|
| state | True to switch the aimer on, False to switch it off. |
Example#
reader = measmatic.get_device('device-id-reader')
reader.switch_aimer(True)
method tune()#
Starts the auto-tuning of the DataMan 280 to the code currently in its field of view.
Example#
reader = measmatic.get_device('device-id-reader')
reader.tune()