LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read data continuously, record at different interval

I would like to perform calculations on my data continuously, but have
a different record interval, such as every 15 minutes, every hour.

How do I condintionally write to my array at the given interval?

I am in a while loop and can create this in 2 while loops. I am
trying not to have to wait for the write loop to complete to stop
program execution. I don't want to wait up to 1 hour after I tell the
program to stop to actually stop.

I don't care if I get the last reading.

Thanks

Terry
0 Kudos
Message 1 of 2
(2,463 Views)
Terry, if you want to record the data at an interval of the rate of the data acquisition, then you already have most of what you need.

Just divide the acquisition time down, so that you can determine the time between samples. Then, figure out the interval in number of samples, and when you reach that interval (use the divide/remainder function to tell) just set a case inside of your acquisition loop to true, and copy that data into another array, and save that whenever (or immediately.)
0 Kudos
Message 2 of 2
(2,463 Views)