Example Code

Finding Running VIs

Code and Documents

Attachment

This example checks the execution state of all VIs in memory and displays the names and front panels of running VIs. You can configure it to display only top-level running VIs, only running subVIs, or both. A VI is in the "Run top level" state if its Run button was pressed and it hasn't finished executing. A VI is in the "Running" state if it is a subVI of a running VI. This VI uses application and VI property nodes to find the VIs in memory and read their execution state.

Use this VI if you receive the "Quitting will abort all running VIs" when you try to exit LabVIEW and you have too many VIs to search manually to find out which one is running.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors