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.
- 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.
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...
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.
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.