09-29-2011 01:04 PM
I have a requirement to track all serial numbers of instruments used in a test. I am able to use DAQmxGetDeviceAttributes for my DAQ type devices, PXI-4071, 5412, 2567, 2569, 6535, and 6722. But I have PXI-8432/2, PXI-8433/2, and a PXI-8513/2 that do not use the DAQmx.
How do I get access to the serialnumber? MAX can do it, so I should be able to.
I am using LabWindows/CVI.
Solved! Go to Solution.
09-30-2011 10:01 PM
Hi Paul,
I think the ModInst library might get you there.
http://zone.ni.com/reference/en-XX/help/370592E-01/nimodinst/overview/
http://zone.ni.com/devzone/cda/epd/p/id/3726
10-03-2011 09:23 AM
Jesse,
Thanks, this is what I wanted.
Paul
10-03-2011 10:11 AM
Jesse,
Attached is a screenshot of what I get running the example program for NI-ModInst. The help states using the empty string will get all instruments in the system. The first list is using "NI-DMM" and the second list is using "" in
OpenInstalledDevicesSession( "", &vi, &deviceCount);
I have 11 instruments in my PXI system.
Slot Instrument
3 4071
4 5413
6 2567
7 2569
9 6535
10 6535
12 6722
14 8234
15 8513/2
16 8433/2
17 8433/2
Does it make a difference if the instruments are a mix of PXIe and PXI?
10-05-2011 04:25 PM
Hi Paul,
It seems like it is only looking for a DMM or some other class of driver. You can try cycling though all the classes and make sure you can see your devices. It seems like something in the program, but I can look into it further if you still are having problems.
10-06-2011 08:19 AM
Jesse,
It appears that this library does nothing.
I have tried
iLocalFail = niModInst_OpenInstalledDevicesSession("NI-SWITCH", &uiDeviceHandle, &iDeviceCount);
iLocalFail = niModInst_OpenInstalledDevicesSession("NI-HSDIO", &uiDeviceHandle, &iDeviceCount);
Both of which should have return with 2 devices, however both returned with 0 and no error.
I know MAX does everything I want to do. It finds every serial number and board type except for the PXIe-8133 and PXI-8234. MAX doesn't organize the data very well, but at least it finds most of it. Can you find out how MAX does it?
10-06-2011 12:38 PM
I would be happy to. Let me set up a PXI and see what I find.