annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Update indicator values in the loop during iterations

Risolto!
Vai alla soluzione

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~ 

Scarica tutti
0 Kudos
Messaggio 1 di 3
1.874Visualizzazioni
Soluzione
Accettato da autore argomento 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
Messaggio 2 di 3
1.847Visualizzazioni

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

 

 

0 Kudos
Messaggio 3 di 3
1.774Visualizzazioni