LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to check if a VI is executable?

Solved!
Go to solution
Hi - I have a problem. Can anyone help?
 
I have a top-level VI that calls a whole bunch of different VIs via a "Call by reference node" - a sort of plug-in structure. Anyway, occasionally one of those VIs gets into a state where it cannot be run and this causes all kinds of errors. When a VI gets in this state I get an error "The VI is not exectutable".
 
What I'd like to do is write some Labview code to interrogate all the VIs in a folder and ensure they can be exectuted.  The only way I can find of doing anything like this is to open a reference to each VI in turn and use an invoke method to run each VI. If it won't run, I get an error that I can capture. The problem is, I'd like to do this without having to run each VI.
 
Is there a way to find out is a VI is executable without actually running it?
 
Jon.
 
0 Kudos
Message 1 of 3
(2,839 Views)
Solution
Accepted by topic author Tournifreak
Yes, open a VI reference to each VI and use a property node to check the Execution state. One of the states is "Bad". If the VI is "good", you'll get an "Idle" state instead.

Easy Peasey, Lemon Squeezie.
Message 2 of 3
(2,834 Views)

Thanks - that's great - I knew there must be a way!

Jon.

0 Kudos
Message 3 of 3
(2,826 Views)