Example Code

Save All VIs with Front Panels Open to Load at a Later Time

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

Save all VIs with an open Front Panel to a file.

 

Description

I was working with a customer who often has many VIs open at the end of the day. At night IT would push updates which required his computer to be restarted. I created the VI to save all VIs with an open Front Panel to a file. Also, I created the VI to load all the files previously saved in order to open all the different VIs the customer was working on.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Open the attached "Save list of VIs with open front panels LV2012 - NI Verified.vi"
2. Run the VI
3. When prompted, select a location and file name to save the list of Open VIs
4. When ready to re-open this list of VIs, run the attached "Load VIs from saved list LV2012 - NI Verified.vi"
5. When prompted, select the location of the previously saved file
6. All listed VIs will re-open

 

Additional Information or References

Save VIs

Save VIs.png

 

Load VIs

Load VIs.png

With warm regards,

David D.

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