Example Programs

cancel
Showing results for 
Search instead for 
Did you mean: 

View All VI's in Memory and Their Execution State

Overview

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

 

Description

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.

 

Requirements

  • 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

1.png

 

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

Applications Engineer
National Instruments
Comments
Benjamin38
NI Employee

This is fantastic code!!!!  GENIUS! 

Regards,

Ben N.
Applications Engineering
ni.com/support
Benjamin38
NI Employee

Your code blew my mind

Regards,

Ben N.
Applications Engineering
ni.com/support
Member RJ_15
Member

Please close the references !!!

Not applicable

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