LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strict VI ref shows state as "running"?

The VI execution system has to handle lots of calls to subVIs that run for nanoseconds, so it can't afford the overhead of recording when it is actually running (at least, that is my understanding).  So not really a bug.  Though, it would be a good idea to that enum item from "running" to "reserved for running", to avoid confusion.  

 

Personally, I use Queues created inside the dynamically-called VI to monitor whether it is still running or not, as references like Queues are automatically destroyed when a VI execution hierarchy stops running.  

Message 11 of 12
(519 Views)

Well, if you really must do something that silly, see the attached VIs.

Note however, that when the VI reference is opened, the state of the VI will become "running" and will stay that way until the reference is closed.

"If you weren't supposed to push it, it wouldn't be a button."
Download All
0 Kudos
Message 12 of 12
(496 Views)