LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Get serial numbers of installed NidaqMx devices

Hello everybody,
i'd like to read out programmatically the serial numbers of the installed NI hardware. We're using PXI-1010 racks with SCXI-1127 muxes and PXI-4070 Dmm. Now i found the command "DAQmxGetSystemInfoAttribute" but this shows only the Muxes. Isn't there a way to find out all the hardware. The MAX can do it, doesn't it have an interface for CVI?
 
Regards,
Thomas
0 Kudos
Message 1 of 2
(3,203 Views)
Hi Thomas,

From what I can tell, there is not yet a programmatic way to get the serial number for a DMM.  You can use DAQmxGetSystemInfoAttribute(DAQmx_Sys_DevNames, ...) to enumerate the DAQmx devices on your system, then use DAQmxGetDeviceAttribute(..., DAQmx_Dev_SerialNum, ...) to get the serial number for a particular device, but the 407x series of DMMs cannot be programmed with DAQmx (only with NI-DMM), so I do not believe they are enumerated by the DAQmx driver.

The NI-DMM API allows you to retrieve the instrument model (NIDMM_ATTR_INSTRUMENT_MODEL), manufacturer (_MANUFACTURER), and firmware revision (_FIRMWARE_REVISION), via the niDMM_GetAttributeViString function, but alas, no serial number.

This page talks about the NI-ModInst API, which does contain functions that allow you to query device information including serial numbers, but NI-ModInst currently only supports NI scopes (and ships with NI-SCOPE).

If the manufacturer and model won't do it for you, you can try looking at the registry keys installed under HKEY_LOCAL_MACHINE\SYSTEM, but that should be a last resort.

I hope this helps to clarify things.

Mert A.
National Instruments
0 Kudos
Message 2 of 2
(3,195 Views)