PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to auto-detect PXI cards

Solved!
Go to solution

In our application, we have the following hardware setup:







NI PXIe-1075

+--------------+
1 | NI PXIe-8130 |
+--------------+
2 | |
+ NI PXIe-5450 +
3 | |
+--------------+
4 | |
+ NI PXIe-5450 +
5 | |
+--------------+
6 | |
+ NI PXIe-5450 +
7 | |
+--------------+
8 | |
+ NI PXIe-5450 +
9 | |
+--------------+
10| BLANK |
+--------------+
11| |
+ NI PXIe-5450 +
12| |
+--------------+
13| |
+ NI PXIe-5450 +
14| |
+--------------+
15| |
+ NI PXIe-5450 +
16| |
+--------------+
17| |
+ NI PXIe-5450 +
18| |
+--------------+

In our code I would like to be able to detect those card automatically.

 

In MAX, they show up as PXI2Slot2, PXI2Slot4, etc.  In the LabVIEW code, when you create a constant for the input, it's PXI1Slot2, PXI1Slot4, etc.

 

At the moment our work-around is to change everything to Arb1, Arb2, etc. and in our input, specify an array of strings of the same input... this kind of sub-optimal.

0 Kudos
Message 1 of 3
(4,351 Views)
Solution
Accepted by topic author RS_233

Hi RS_233-

 

     There is a KnowledgeBase article online that discusses Programmatically Determining What DAQ Devices Are In My System.

 

     Here is an example VI that demonstrates how to do this in LabVIEW. 

 

     This should do what you want.  I hope it helps.  Best of luck with your application!

Gary P.
Applications Engineer
National Instruments
Message 2 of 3
(4,310 Views)

I had a similar question a while ago for PXI modular instruments.  In that case, use the NI modular instrument API

 

0 Kudos
Message 3 of 3
(4,305 Views)