From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Data Writing Logic Structure

I am currently running code that takes data from a DAQ assistant at 1kHz and collects 1000 samples at a time in a while loop.  It takes the channels samples and converts it to arrays, averages the calues in each channels array, and then puts the outputs into an output file.  So once a second I am getting one value for each channel and saving it.  I would like to set it up so every ten minutes or so it will also record one to two seconds of non averaged data and output it in a seperate file. I was curious if anyone could offer insight into setting up a logic structure that could accomplish this.

 

Best Regards

0 Kudos
Message 1 of 2
(2,366 Views)

Look at using the Elaspsed Time express VI to determine when 10 minutes have passed.  Within the True case of a case structure tied to it, write the array taken from before averaging to that separate file.

0 Kudos
Message 2 of 2
(2,361 Views)