Realtime is a dangerous word, but yes, this will work as expected.
However, be aware that updating front panel objects via value references is extremely expensive. You shold definitely not do this in an inner fast loop. It also makes the code incomprehensible if you do this excessively. What if several subVIs update the same indicator?
You'll get all the associated problems of (1) bypassing dataflow, (2) race conditions, (3) extra data copies in memory and (4) extra thread switching, (5..inf) etc..
For example, in the attached image, you could select the while loop and turn it into a subVI and things will continue to work as expected.
Now, when running the toplevel VI, the counter will be updated in "realtime" and you'll be able to stop the subVI with the stop button on the toplevel VI.
Does this answer your question?
Message Edited by altenbach on
01-19-2008 01:16 PM