From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

preserving orig data while adding new elements

I want to build a static array of 10 elements, then while sitting in a while loop choose which element to over write but keep all other elements unchanged.  I can change element 4 for example, but everytime I change an element, the other elements are reset back to 0.
0 Kudos
Message 1 of 3
(2,146 Views)
Most likely, you need a shift register. Feed the modified array to the right shift terminal and read it back from the left shift register.
 
If you don't, you continue to read from the plain tunnel at each iteration, which of course is always all zeroes.
0 Kudos
Message 2 of 3
(2,145 Views)
Here's a simple draft image...

Message Edited by altenbach on 01-31-2007 01:06 PM

0 Kudos
Message 3 of 3
(2,142 Views)