wjasper / Linux_Drivers

Open source Linux device drivers
GNU General Public License v3.0
110 stars 64 forks source link

What is the optimized count value when polling data continuously from USB1608G in 50KBps? #4

Closed openedhardware closed 7 years ago

openedhardware commented 7 years ago

I am going to use the raspberry pi to poll analog input data from USB1608G device continuously in the speed of 50ksps.

In the Linux driver, you had developed, I found there is a function something like this: usbAInScanStart_USB1608G(libusb_device_handle *udev, uint32_t count, uint32_t retrig_count, double frequency,uint8_t options)

openedhardware commented 7 years ago

Any thought on this?

wjasper commented 7 years ago

Look at test-usb1608G.c for the "C" option for continuous sampling. In that case, count=0 for continuous sampling. You should ignore retrig_count (unless you want re-triggering) Burst mode tries to sample all the channels at once. For only one channel, burst mode has no effect.