LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store piece of data for longer than sample period

I am using DAQ assistant to monitor voltage. I would like a short sample period so that  the screen is refreshed. I also want to store a sample voltage for aprox 1 min so that I can compare with real time data.
I thought I would be able to store the data on an array but the array only contains data from 1 sample period.
 
How can I have a screen refresh every second or so but store a data sample for 1 min+?
0 Kudos
Message 1 of 2
(2,486 Views)

You could create an Action Engine (or a Functional Global Variable).

If you know the number of samples, you could initialize a 2D array (60 X no.of samples - for 1 sec samples over 1 minute).

Each row of the 2D array would contain the 1 sec samples.  The action engine would keep track of the current index and retain the values in memory until you close the Action Engine.  This will allow you to take the samples and read them after you are done sampling.  You could also read it from another VI. 

You could also implement the same 2D array directly within your code.

RayR

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