Example Code

Determine Program Version Example

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 VI demonstrates how to find what version of a program a user has installed on their computer.

 
Description
Here is a brief description of the example:

This example uses the System Directory and Folder names provided by the programmer to find the version of a program that is installed on the same machine. For example, you can use this VI to find how many and what versions of LabVIEW are installed on your machine. This information can be used to make programmatic decisions in different parts of your code.

 

Requirements

  1. LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download and open the VI
  2. Enter Program File Folder and Program Name as described in the notes on the VI
  3. Run the VI
  4. See the version numbers of the program you entered

 

Additional Information or References

VI Snippet

Determine Program Version 2012 NIVerified.png

 

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

Cameron T
Applications Engineer
National Instruments

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