Example Code

Display Multiple Running VIs through Selection in a Main VI

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

The following VI will allow the user to select pre-defined VIs to run.聽 The user may run one or all of the pre-defined VIs.

 

Description
In the DisplayMultipleRunningVIs.vi, the Menu Ring controls which VI is opened and run.

The values from the Menu Ring are used to index an array of the defined VIs. (Note:The name of the VI does not need to match the name assigned in the Menu Ring.) The only condition that needs to be met is that the DisplayMultipleRunningVIs.vi is in the same location as the selected VIs, since the Current VI's Filepath VI is being used to define the file paths of the selected VIs. The Load and Run VI and Front Panel Open Invoke Node will display and run the selected VI.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

 

  1. Select the VI that show at front panel
  2. Run this VI

Additional Information or References
VI Block Diagram

 1.png

 

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

 

Regards,

Sara Lewandroski
Applications Engineer | National Instruments

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

Comments
joshuatree
Member
Member
on

Could i beg you to post an 8.0 version?  

KrisnaWisnu
Member
Member
on

Thanks!! this is useful for me

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024