Overview
The provided code allows for programmatic export of all Virtual Devices and IVI Configurations from one installation of NI Switch Executive (NISE), to be used in another.
Description
This VI will Export NI Switch Executive (NISE) XMLs from the MAX database to a selected folder. Additionally, this VI will export the IVI configuration store. This is beneficial for large system deployments.
This example will perform the following steps in the block diagram:
- Create an "Export" folder at the location specified in the "Export Location" control.
- Create an "IVI Exports" folder within the location specified in the "Export Location" control.
- Finds the IVI configurations store location depending on the operating system type.
- Copies the "IviConfigurationStore.xml" file into the "IVI Exports" folder within the location specified in the "Export Location" control.
- Create an "NISE Exports" folder within the location specified in the "Export Location" control.
- Opens the NISE configuration from the MAX database.
- Grab the list of virtual device objects.
- Verifies that there are virtual devices in the NISE configuration.
- Grab the virtual device name from the virtual device object.
- Export the virtual device as an XML.
- Close out the virtual device reference.
Requirements
Software
- LabVIEW 2012 (or compatible)
- NI Switch Executive
Hardware
- Any switching hardware compatible with Switch Executive. Refer to the NI Switches Getting Started Guide and NI Switches Help for information about connecting signals to your switch module.
Steps to Implement or Execute Code
- Place this VI as a SubVI in line with your NI Switch Executive code
- Wire your NI Switch Executive Session Reference, NI Switch Executive Virtual Device Name, and Error wires into the "NISE Find Active Routes.vi"
- Create an Indicator at the output of this VI to read the Active Routes
- Run the VI
Additional Information or References
VI Snippet

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