08-06-2019 01:38 PM
I have a set of random number values streaming in with a corresponding index value. The VI finds the index and places this value into an array using replace array subset. However, each time a new value comes in, the array only contains that value and does not have the old values. I want the array to save the last values from each index and only replace them when a new one comes in. The final output should be a 1x10 array with values contsantly changing
Solved! Go to Solution.
08-06-2019 01:43 PM
You can delete the for loop and put the shift registers on the while loop.
08-06-2019 02:50 PM
The VI posted makes little sense. You will never get a 0 index because you are rounding up. An index of 1 will never be replaced. See below for an improvement.
mcduff
08-06-2019 03:15 PM
That should be round down, not round to nearest.
08-06-2019 03:16 PM
@RavensFan wrote:
That should be round down, not round to nearest.
Thanks for catching that