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