LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically detecting the PCI Slots using Labview.

Hi,

I have a PCI system with multiple PCI cards (2 MIO, 1 DIO and 1 pci-1411). How can I programmatically determine what PCI modules I have and in which slot they are installed?
Regards,
Sreedhar T
0 Kudos
Message 1 of 11
(4,183 Views)
Hello,
There are ways to view what devices are present with LabVIEW. Attached is a quick example program I wrote that will look for data acquisition devices in your system. It will work for either Traditional NI-DAQ or NI-DAQmx, just be sure to make sure the toggle switch on the front panel indicates which one you would like to use. Hope this helps.
-Alan A.
Message 2 of 11
(4,151 Views)
Thank you very much, but where will I get the device number?
Regards,
Sreedhar T
0 Kudos
Message 3 of 11
(4,138 Views)
Many of NI cards (eg. PCI-6602, PCI-MIO-16E1, PCI-6052, etc) have same type of
68-pin header at the back for Sh6868 cable. Often we face the trouble of opening
up the PC cover to identify which slot has which PCI card. I am sure there must
be some easier way to know which slot has which card.

The problem regarding device number for the card is simply solved by checking out on
the MAX Explorer.
0 Kudos
Message 4 of 11
(4,128 Views)
Ya, but my application should programatically know the device numbers and automatically assign them in the right place, so that there wont be any problem with the acquisition.
Regards,
Sreedhar T
0 Kudos
Message 5 of 11
(4,121 Views)
If you are talking about the Ni-DAQmx part, the DAQmx System property node returns the device number. If you are talking about the Traditional NI-DAQ part, there really isn't a good way to find out the device numbers that are present in the system besides the method in that example. You can simply look at the elements in the array that are returned and determine the device number that way (first element is device 1, second element is device 2, etc.) Hope this helps.
-Alan A.
0 Kudos
Message 6 of 11
(4,112 Views)
Yes, the NI-DAQmx is definitely giving the slot numbers. But the Tradational DAQ is not displaying the proper device number (if I try in the method you said). But I am not very sure about it coz' I am trying this out with a PXI chassis, which is in the RT Mode.
Thanks anyway... I will get back after I try it out with PCI devices.
Regards,
Sreedhar T
0 Kudos
Message 7 of 11
(4,100 Views)
Hi all,

I just forgot to ask one more thing, can this program detect the ISA slots?
Regards,
Sreedhar T
0 Kudos
Message 8 of 11
(4,077 Views)
The Traditional NI-DAQ part of the program will return the device number assigned to it in Measurement & Automation Explorer(MAX). I have not tested this example with ISA slots, but if the device is recognized and shows up in MAX, then it should work properly.
-Alan A.
0 Kudos
Message 9 of 11
(4,058 Views)

I tried opening the device_info.vi but it requires GetDAQDeviceinformation.vi.

Where can i find the same?

0 Kudos
Message 10 of 11
(3,813 Views)