Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Programmatically Query the Serial Number of a DAQ Device

Primary Software: LabVIEW Development Systems>>Base Package
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Multifunction DAQ (MIO)

Problem: How do I programmatically query the serial number of a DAQ device?

Solution: There is a DAQmx Device Property Node that allows you to directly query the serial number of the device.

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 and going to All Functions > Measurement I/O > DAQmx > Advanced > System Setup > DAQmx Device Property Node.

Place the property node on the block diagram and expand it. Populate the second field by selecting the field, Identification > Device Serial Number and create an indicator so that you can see the resultant number.

Serial Numbers are typically expressed in Hexadecimal format, but the default format for a Numeric Indicator is to display the data as a floating point number. To change this go to the Front Panel and right-click on the DevSerialNum indicator and select Format and Precision. Change the format to Hexadecimal and then click OK. Now the Serial Number for any DAQmx device will be displayed in its proper hexadecimal format.

Note: If you have LabVIEW 7.0 or higher, you can simply run the attached VI and obtain the serial number.

Text-Based Programming:
For languages other than LabVIEW you can use the DAQmxGetDevSerialNum command to query the Device Serial Number.

int32 __CFUNC DAQmxGetDevSerialNum(const char device[], uInt32 *data);



Related Links:
KnowledgeBase [0TOE61IU]: Programmatically Reading Serial Numbers from National Instruments Data Acquisition Devices (Traditional DAQ)

Attachments:


QuerySerialNumber.viDeviceNode-FunctionPalette.JPGDeviceNode-BlockDiagram.GIF


Report Date: 06/08/2006
Last Updated: 06/16/2006
Document ID: 3Y7FG446

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit