LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I determine which (sub) vi is currently executing?

I have a main vi which incorporates many sub-vi's. On rare occasions execution will 'hang-up' and it would be nice to know which vi is stuck. Is there any easy way to determine which vi is currently executing (I don't want to use the light-bulb/execution hi-lighting feature because of timing considerations).

Thanks!
0 Kudos
Message 1 of 6
(3,411 Views)
As a VI is running, you can see the run arrow look like it's running. If you are using reentrant VIs, this won't work because there are multiple instances of that VI, which may be run independently.
0 Kudos
Message 2 of 6
(3,411 Views)
Thanks LarsRoe...I guess I was aware of the run arrow, but was hoping there was another/easier way. I have quite a few vi's and it will be a pain to have to look at all of them (potentially). However, if that's the only way, then so be it.
0 Kudos
Message 3 of 6
(3,411 Views)
You can also do it programmatically with LabVIEW. "Exec.State" is a VI property that will tell you if a given VI is running.
0 Kudos
Message 4 of 6
(3,411 Views)
This sounds more like what I was looking for...I'll investigate to see how it works.

Presumably I could have the main vi monitor the Exec.State of all (sub) vi's and display an LED panel indicating which one is executing?
0 Kudos
Message 5 of 6
(3,411 Views)
To add to this when in execution highlighting there is a green arrow on what subvi is running.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 6 of 6
(3,411 Views)