Example Code

How to Create a Strictly Typed VI Reference to Call VIs Dynamically Using LabVIEW

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

This VI is written to explain how to call the "Name Address.vi".

 

Description

The following screen shots show a step by step process to create a strictly typed VI reference to call VIs dynamically. The "Strictly Typed VI Ref.vi" is written to call the "Name Address.vi".

 

Requirements

  • LabVIEW 2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the "Strictly Typed VI Ref.vi" and view the steps listed in the block diagram.
  2. To build your own VI, follow the steps in the photos in the "Strictly Typed VI Ref.zip" folder.

 

Additional Information or References VI Block Diagram

VI Snippet

strictly.png

 

  

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

 

 

Applications Engineer
National Instruments

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

Comments
jtw11
Member
Member
on

Do you (or does anyone else) know how to programatically create the strictly typed VI reference? I have a vi with multiple dynamic calls to other vi's and when I change one of my clusters, I have to manually update all of the refnum constants.

Thanks,

Josh