Skip to content

Erro --> read_scan_data #12

@joaojcsq

Description

@joaojcsq

Hi, thanks for the library.
I have USB 204 and I'm a Python beginner.
I'm trying to capture signals using a rasberry pi3 and USB 204.
But when I write the code:

import daqflex
dev = daqflex.USB_204
dev.read_scan_data (512,1000,50000)

this error appears:

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/home/pi/Desktop/Conversor/venv/lib/python3.7/site-packages/daqflex/devices.py", line 132, in read_scan_data
     timeout = int (self._bulk_packet_size * 1e3 / 2 / rate) + 10
AttributeError: 'int' object has no attribute '_bulk_packet_size'

Does anyone know what I can do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions