LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I put data in an array which will be used in SPC plotting

In my program, it will generate data continuously and I would like to store these data time to time in an array. Could you suggest me a method?
For example, 1.77,1.67,1.56,1.89,1.99... (these data generated continuously)
1st second: 1.77 1.67,1.56,1.89,1.99( store in array)
After 1 second: 1.67,1.56,1.89,1.99,1.33 (remove the first one data in the array and replace it with the following generated data)
How can I remove the data in the array and replace it with the other data?
Could you give me some examples?
Thanks
0 Kudos
Message 1 of 2
(2,522 Views)
Check the attached VI. It includes two methods. You can choose the one you like. I prefer the bottom one because only one extra memory for the subarray is created. The top one makes two copies because of the resize.

Joe
0 Kudos
Message 2 of 2
(2,522 Views)