From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com 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.com/downloads.

    Driver

  • NI-DAQmx

Code and Documents

Attachment

Description

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 Get_Hardware_Info.vi 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.

Contributors