LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to update an array after every iteration?

Solved!
Go to solution

Hi,

 

I have a vi that runs fine but the problem is it updates all the data once the vi stops running. I want something like as soon as (for outer for loop) 1 iteration completes it updates the array in front panel, then 2nd iteration it updates again ans so on. Can anyone please help me with this.

 

Thank You

0 Kudos
Message 1 of 3
(2,661 Views)

You need to create a reference to the front panel indicator that you want to update. (Right click, create, reference).

 

You then feed this reference into the SubVI or loop where you want the update to happen.

 

Wire the reference to a Property Node and select the Value Property.

 

Whenever you put data into the value, it will update the referenced indicator.

Message 2 of 3
(2,652 Views)
Solution
Accepted by Hnagpal

Actually, in your case, there's a simpler way to do it.... if we're talking about the pink string indicator on the first loop.

 

Just move the Array indicator from oustide the loop to inside the loop. 

Message 3 of 3
(2,651 Views)