Example Code

How can I check the Serial Number of a Device using 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.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview

This example works to directly query the serial number of the device.

 

Description

To query the serial number on your own simply place the DAQmx Device Property Node by right-clicking on the Block Diagram to open the Functions Palette, navigate to All Functions»Measurement I/O»DAQmx»Advanced»System Setup and select a DAQmx Device Property Node. Create a constant for an ActiveDev. This will be where you select your device. Expand the property node down one level, and select Identification»Device Serial Number and create an indicator so that you can see the resultant number.

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

1.Select your Device Here.
2.Run the VI.
3.Get the Serial Number of Device.

 

Additional Information or References

Serial Number.PNG

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

 

Many thanks for using the NI forums and I look forward to your reply.

Kind regards

David

Applications Engineer
National Instruments UK

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

Comments
Kirinos
Member
Member
on

I just used this on two different PCI 16XE-50 boards in the lab. They both returned the exact same code. Are device serial numbers supposed to be unique?