Example Code

NI Switch Executive Find Active Routes

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.

    Hardware

  • Modular Instrumentation

    Software

  • LabVIEW
  • Other

Code and Documents

Attachment

Overview
This VI will allow you to determine which routes are currently connected on your NI Switch Executive Virtual Device.

 

Description 

 This VI is expected to be used in line with the rest of your NI Switch Executive code to determine currently connected routes. This can be used to verify if a route is currently closed or currently open at runtime


Requirements

  1. LabVIEW 2012 (or compatible)
  2. NI Switch Executive


Steps to Implement or Execute Code

  1. Place this VI as a SubVI in line with your NI Switch Executive code
  2. Wire your NI Switch Executive Session Reference, NI Switch Executive Virtual Device Name, and Error wires into the "NISE Find Active Routes.vi"
  3. Create an Indicator at the output of this VI to read the Active Routes
  4. Run the VI

 

Additional Information or References

 VI Snippet1111.png

NISE Find Active Routes 2012 NIVerified.vi

 

2222.png

NISE Find Routes Status 2012 NIVerified.vi

 

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

Frank,
National Instruments
Software Group Manager

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