Overview
The provided code allows for programmatic import of all Virtual Devices and IVI Configurations exported from one installation of NI Switch Executive (NISE) to another.
Description
This VI will Import NISE XMLs from a selected folder into the MAX database. Additionally, this VI will import the IVI configuration store. This is beneficial for large system deployments, as Virtual Devices and IVI configuration would not have to be manually recreated.
The example performs the following tasks:
- Based on the operating system, the location for the IVI configuration store file is selected.
- Creating file paths for the old IVI Configuration Store, and the new one.
- Copying the old IVI Configuration Store and renaming it "*_old.xml"
- Copying the new IVI Configuration store from the selected folder into the correct directory
- Gets all the filenames from the NI Switch Executive XML Import Folder.
- Build the path for import based on the files listed in the folder.
- Gets the Device name from the xml filename.
- Imports the XML file to the MAX database, overwriting IVI device names as necessary.
Requirements
Software
- NI LabVIEW 2012 (or compatible)
- NI Switch Executive compatible with the version of LabVIEW
- XML Configuration File
Steps to Implement and Execute Code
- Open as a standalone VI; or place as SubVI, or LabVIEW step in a TestStand sequence
- Select the import location in the "NI Switch Executive XML Import Folder" control
- Select Whether you want to import the IVI configuration by checking or unchecking the "Import IVI?" boolean
- Select your operating system in "Operating System"
- Select the folder containing your "IviConfigurationStore.xml" file under the "IVI XML Import Folder" control
- Run VI / Step
Additional Information or References
VI Snippet

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