How Can I Acquire Data from My DAQ Device Faster in My Loop?

Updated Jan 29, 2018

Reported In

Hardware

  • Modular Instruments System

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

I noticed my loop to acquire data was not running as fast as expected. All I am doing is acquiring data, modifying the data, and then writing that information to a file. How can I get it to run faster?

Solution

The solution is to create a producer/consumer coding style. This will allow you to acquire your data all in one loop while doing all the post processing in another loop. This allows your program to acquire data as fast as you would like. There are two ways to do this:
  1. A new method that came in LabVIEW 2016 to make this easier is channel wires. This will help pass your acquired data to a new loop to be processed.
  2. If you are using a version before LabVIEW 2016, or just want to do it a different way, you can use this document about what queues are

Additional Information

This same architecture not only applies to DAQ devices, but also to Modular Instruments.

WAS THIS ARTICLE HELPFUL?

Not Helpful