LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i have to save data coming at the rate of 50 ms.i am trying to store the data in an array.from this array, i have take last 60 minutes of data and store in excel. But i am not able to build array to hold the incoming data.

data comes at the rate of 50 ms. So this data has to be stored in a temprorary location say array or circular buffer.After 60 minutes, the new data should append at the last value and the first value should be deleted. Please help.
0 Kudos
Message 1 of 3
(2,649 Views)
Hi,
As I understand all you need to do is following:
1. If the time of data storage is less then 60 minutes you just have to add new elements to the end of array.
2. If time is greater then 60 minutes you have to delete the first element from array and then add a new one to the end.

So you need to use the case structure which deletes (or not) the first element from array depending on the current time.
Use functions from "Functions->Time&Dialog" palette to get time. And use "Functions->Array->Delete From Array" to delete item. To add items to array you can use "Build Array" function.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 3
(2,649 Views)
Another idea to try. If your data is going to a waveform chart, set the chart history length to 72000 (20*60*60) and use a property node to get at the chart history. This will do the array manipulation for you.
0 Kudos
Message 3 of 3
(2,649 Views)