05-11-2006 04:02 AM
05-16-2006 01:51 AM
05-16-2006 03:04 AM
05-16-2006
07:58 AM
- last edited on
04-23-2025
05:08 PM
by
Content Cleaner
Eric,
I have very little experience with the USB devices and don't really know whether your 6016 will be capable of the task you want to do. You mentioned needing a few hundred samples in about 5 seconds which "feels like" it should be do-able, provided the rest of the app doesn't bog down the CPU. As you've discovered, the on-board FIFO for counters is very small , so your CPU will have more work to do in such a data acq task.
In any case I'm almost certain that any shortcomings are NOT due specifically to the DAQmx driver as compared to traditional NI-DAQ. The lack of DMA support is not particular to DAQmx -- it's the 6016 device itself that doesn't support DMA.
You mentioned considering the purchase of a USB 6020E. Check this with your local NI sales/tech rep, but I am >90% confident that you'd be better off considering a USB 6251. It's cheaper, has better specs, and *appears* to have a much-enhanced ability to stream continuous data. Here's the product page.
Meanwhile, can you describe in more detail what your app needs to do? Can you post the code you've tried? I think there's a good chance of improving the performance of your app, if your baseline comparison is an old "EASYIO" example. Hopefully someone that's used a 6016 for a continuous counter task can join the thread.
-Kevin P.
05-17-2006 10:49 AM
I am 100% confident that the USB-6251 is a better USB solution than the USB-6020.
You might not want to use USB at all though. What are the data rates that you are attempting to stream? PCI is going to provide better throughput rates for counters than USB devices. Actually, it may be more important to just get a general idea of what you are working to accomplish.
05-19-2006 03:15 AM
05-19-2006 07:05 AM
Questions:1. Does DAQmx really support counter DMA ? I thought I need DAQmx base 2.0 for this ?2. How can I make sure that DMA is used and not IRQs ? Is it enough to declare continous sampling when defining the task in the MIE (Measurement and Instrumentation Explorer)3. Can I ask LabView if this task uses DMA ? To make sure I set DMA with the channel proerty node, but got -200371 (cannot define another channel on same device). I assume this is because I declared the task in the MIE already.4. Does it make sense to set the buffer size ? If so which one: input or output buffer ? A post in the knowledge base says DAQmx does this automatically.
05-24-2006 12:24 PM
Hi Kevin
Thanks for advice again.
I found the last bug in my setup and this thread can be closed.
The reason for the rare -200141 I had was unclean edges on my counter gate. I obviously I had double edges causing event triggering within microsecond distance. This was too fast for the buffer mechanism. Adding the usual tantalums to the 5V supply of my tacho buffer hardware removed the problem. I can now read thousands of events without problems.
I found hints on noise in the forum, but searched for software bugs first.
I will retry to go back to the counter on my USB device DAQpad-6016 to checkout if the USB data transfer is fast enough.
Rgds
Eric