Example Code

List all LabVIEW Environments Installed (Windows 10)

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

    Operating System

  • Windows

    Programming Language

  • LabVIEW G

Code and Documents

Attachment

Description

List all locally installed LabVIEW environments on a Windows 10 machine including the version (xx.x.x) and bitness (x86/x64) of each environment.

 

 

 

This accounts for the Window's registry bitness in Windows 10 that separates HKEY_LOCAL_MACHINE keys to x32 and x64 subkeys.

    x86:  HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\National Instruments\LabVIEW\xx.x

    x64: HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\LabVIEW\xx.x

This also determines the bitness from the executable files directly where:

    x86: "L" -> "PExxL"

    x64: "d" -> "PExxd"

 

How to Use

Run the VI to get a list of all LabVIEW Environments locally installed. The VI also returns the indexes to the current LabVIEW x86 & x64 version. If non exist, the indexes return -1.

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