From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Get Serial Number of NI Hardware Programmatically

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-DAQmx

Code and Documents



This example explains how to get the serial number and other information of NI hardware programmatically.


How to Use

  • For all NI devices
    NI System Configuration API can be used to get the serial number of NI hardware devices. 
    Download the example for more detail.
  • For NI DAQ devices
  1. The serial number could be acquired by DAQmx property node. In the function palette of the block diagram, the "Device Node" could be found at Measurement I/O > Advance > I/O Constant > Device Node.

  1. Choosing the information needed by clicking the Device Node and select in the Identification category

  1. Assigning the DAQ device and executing the vi would get the information of the DAQ hardware.


Related Links


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