LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update indicator values in the loop during iterations

Solved!
Go to solution

Hi all,

 

I wrote a vi that counts 1 to 10 and saves the value into an array, and the array values updates during iteration and also there is a progress bar

 

so i can monitor the loop status.

 

It functions well, but the problem is when i build this vi into a subvi, and calls it in another vi, it won't REAL-TIMEupdate the indicator values

 

during iteration

 

Hope someone could help to find way to solve this problem~ 

Download All
0 Kudos
Message 1 of 3
(954 Views)
Solution
Accepted by topic author Ericlee0825

I recommend you learn some basics about LabVIEW and dataflow. There are plenty of resources here on ni.com. The outputs of the subVI will not be available until the subVI finishes execution. If you want to change the value or appearance of an indicator or control from a subVI, you need to use a reference of that control. Pass the reference to the subVI and use method or property nodes on that reference.

Lucian
CLA
0 Kudos
Message 2 of 3
(927 Views)

Thanks a lot, I've tried to use reference and property node and i works!

 

 

0 Kudos
Message 3 of 3
(854 Views)