Example Code

Programmatically Save VIs for Previous Version

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 example VI shows how to dynamically convert .vi files into LabVIEW previous version

 

Description

I am sure that many of us have been in that situation where we need to save multiple VIs for a previous version. Using VI Server technology, here is an example utility that will make life simpler when you need to save entire directories back to previous versions of LabVIEW.

 

Requirements
LabVIEW 2012 (or Compatible)

Steps to Implement or Execute Code

  1. Select files to convert
  2. Select destination folder
  3. Select previous version to save to
  4. Run the Vi

Main VI Snippet:

Main VI.png

 

Additional Information or References

VI Block Diagram

Save for Previous Version.png

 

Additional Notes

Just remember...don't use this on your vi.lib as you may be waiting a while!

 

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

 

**Edit on 2019-11-20: A new zip-file has been added, which contains a version for LabVIEW 2019 (or later) that also handles projects (.lvproj) and libraries (.lvlib).**

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

Comments
GDO Visionair
Member
Member
on

Hello,

could you save this VI's for Labview 8.6 or an earlier version? I don't have Labview 2009.

Thanks

BasWelling
Member
Member
on

Yes, a Labview 8.6 or earlier version would be welcome.

Thanks!

Aaron_E
Member
Member
on

Updated version:

https://decibel.ni.com/content/docs/DOC-19822

Allows saving as 2009 and 2010 versions.

Aaron. E
Product Performance Engineer
Dyson
Adam_S
Member
Member
on

This was a life-saver for me today to convert LV 2019 training material to LV 2018.  Many thanks!

Adam