Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

How do Scan, Sample, and DataInterval relate?


skkimball Sep 2, 2016 03:57 PM

When "Sample" is used to store variables in the data table e.g. using Sample(1, AirT, FP2) and we scan data every 3 sec using Scan(3, Sec, 3, 0) and save data every minute using DataInterval(0, 1, Min, 10), what 3-sec value is stored; the first of every minute, the last, something else?

Thanks!

Sytske


Terri Sep 2, 2016 04:31 PM

The Sample will be the current measurement, so the first of every minute. If you were doing Average instead of sample, it would store the average of the previous minute at the beginning of each new minute.

If you had a DataInterval (15,60,Sec,1), then the stored sample would be the measurement taken 15 seconds into 60 seconds, so 15 seconds after the beginning of each minute.

Without the DataInterval instruction, the data will be stored to the table every time the program runs, so you would have a sample stored every 3 seconds.


skkimball Sep 2, 2016 05:21 PM

Thank you!!

Sytske

Log in or register to post/reply in the forum.