01-24-2017 03:20 PM
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
01-24-2017 03:22 PM
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.