How Do I Write my DAQ Data to a File After I Filter it?

Updated May 8, 2024

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

I am using DAQmx VI's to collect data in LabVIEW. I am currently using the "DAQmx configure logging" VI to write my data to a file but it doesn't let me filter my data before it writes it to a file. How could I filter my data before I write it to a file? 

Solution

One way to accomplish this is to take the data output from the read and wire it into your filter. You can then wire the filtered data into a "write to measurement file". The picture below shows one way of doing this.

Additional Information

You might consider using a producer/consumer loop set up if you are trying to filter data at the same time that you are collecting it. The Producer/Consumer pattern gives you the ability to easily handle multiple processes at the same time while iterating at individual rates.