LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

indicator in subvi question

Hi,

I have a subvi with a loop and an indicator that updates with each loop iteration inside the loop. I then also route this indicator out to the front panel of a calling vi, but the indicator doesn't update after every loop iteration in the subvi. It only updates when the subvi is finished. How can I fix this so the indicator updates after every loop iteration in the subvi.

Thank you,

-Tim
0 Kudos
Message 1 of 6
(2,779 Views)
- create a local variable inside the loop
- connect local variable to your data
- (now you can REMOVE the indicator of the sub-vi)
- use a local variable to access the data.

If necessary read/ look at examples using local variables.
0 Kudos
Message 2 of 6
(2,770 Views)
You can pass a reference of the calling vi's indicator to the sub-vi; the loop should update the value property of the reference object. see the attached pair of vi's...
Download All
Message 3 of 6
(2,768 Views)
Hi,

Thank you for your suggestions. I cannot see the previous vis because i have labview 7.1. I have attached a example vi here of what I would like to do. I would like the main vi to also update like the subvi updates.

Thank you,

-Tim
0 Kudos
Message 4 of 6
(2,745 Views)
Sorry I have forgot the attachement.
0 Kudos
Message 5 of 6
(2,744 Views)
Here is your example modified to use a control reference to the indicator. There are some shipping examples and numerous posts on this forum about control references.
Message 6 of 6
(2,737 Views)