04-22-2014 12:03 AM
Hello
I am reading 100 samples on the run. I need to save these samples in an array do some computation and then clear that array to store next set of 100 samples.
i have a while loop, using logic of quotient remainder block i get integer output from 0-99 (using shift registers and quoteint remainder block). I plug the output to index of insert into array block.
However the array keeps on appending
How can i clear the array after every 100 samples are stored.
04-22-2014 12:10 AM
04-22-2014 02:02 AM - edited 04-22-2014 02:02 AM
I would initialize an array of 100 element in a shift register and use "replace array subset" to fill with new data. Whenever all 100 elements have been replaced, process the array and start over. Since all elements will be overwritten when it is time for the next analysis, you don't even need to clear the old data.
04-22-2014 07:27 AM - edited 04-22-2014 07:27 AM
Just to better show what Christian is talking about...