From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Serialnumbers of non-DAQ cards

Solved!
Go to solution

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.

0 Kudos
Message 1 of 7
(3,830 Views)
Solution
Accepted by topic author Paul_Knight_Lockheed_Mart

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

 

Jesse Dennis
Engineer
INTP
0 Kudos
Message 2 of 7
(3,813 Views)

Jesse,

 

Thanks, this is what I wanted.

 

Paul

0 Kudos
Message 3 of 7
(3,805 Views)

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?

0 Kudos
Message 4 of 7
(3,739 Views)

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. 

 

Jesse Dennis
Engineer
INTP
0 Kudos
Message 5 of 7
(3,708 Views)

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?

0 Kudos
Message 6 of 7
(3,699 Views)

I would be happy to. Let me set up a PXI and see what I find.  

Jesse Dennis
Engineer
INTP
0 Kudos
Message 7 of 7
(3,694 Views)