Example Code

Query NI License Information Programmatically in LabVIEW

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.


  • LabVIEW

Code and Documents



This code allows the user to easily pull the serial numbers of LabVIEW, LabWindows and TestStand.



This example code employs the use of Windows Access Registry API VIs to pull the serial numbers.  To access other software serial numbers, the user must find the exact software subkey within the registry.



LabVIEW 2012 (or compatible)



Steps to Implement or Execute Code

  1. Select type of the software 
  2. Run the VI

 Additional Information or References





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



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