Example Programs

Showing results for 
Search instead for 
Did you mean: 

View All VI's in Memory and Their Execution State


This example shows the user how to use LabVIEW to dynamically view which VIs are in memory and their execution state.



This example allow user to view all VIs in memory and their execution state with Property Node. To implement this function,

  1. Drop a VI Reference Server on the block diagram and change its value to "This Application."
  2. Right-click the VI Reference Server and click Create >> Property for Application Class >> Application >> All VIs In Memory.
  3. Now drop down a For Loop, this allows us to go through all the VIs in memory. Make sure indexing is enabled.
  4. Within the loop use an Open VI Reference and right-click it to create a Property for VI Class then navigate to Execution >> State.
  5. Connect the wires as seen in the attached VI and add the appropriate indicators.
  6. Close the References.



  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI.
  2. The VIs that are open their execution state will be displayed on the Front Panel.


Additional Information or References

Front Panel

VIs in mem.jpg

VI Snippet



**This document has been updated to meet the current required format for the NI Code Exchange.**

Applications Engineer
National Instruments
NI Employee

This is fantastic code!!!!  GENIUS! 


Ben N.
Applications Engineering
NI Employee

Your code blew my mind


Ben N.
Applications Engineering
Member RJ_15

Please close the references !!!

Not applicable

Wonderfull!!! Simple and clean...!!!