LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.vi running? and stopped if reference closed?

G'day on this fine day where it is impossible to avoid hearing about the royal wedding here in Copenhagen. It's too much. Non-stop on radio and all networks. I believe that 98% of all Danes are extreme royalists... while everybody in the governmental sector get half the day off with full wages I sit inside thinking about the fishing trip I cannot join, and then of course about:

1) Is there any way to check whether or not a .vi is running?

2) If all references to a running .vi are closed then will the execution of the .vi stop (or run in a mode where you cannot reach it again)?


Greets,
Martin
0 Kudos
Message 1 of 3
(2,670 Views)
Skinny wrote:

> 1) Is there any way to check whether or not a .vi is running?

If you have a VI reference open to it you can use the property Node
Execution->State.

> 2) If all references to a running .vi are closed then will the
> execution of the .vi stop (or run in a mode where you cannot reach it
> again)?

It depends. As long as the front panel to that VI is open it will keep
running. If the front panel is also closed and it is the last VI active
in an executable the entire application is shutdown.

To have a VI run without open panel you should open a VI reference to
that VI somewhere even if it is inside that VI.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 3
(2,670 Views)
Thanks!

- Martin
0 Kudos
Message 3 of 3
(2,670 Views)