10-28-2019 11:15 AM
Hi everyone,
i'm having some troubles trying to get the PXI chassis number using the VIs in the system configuration palette.
My goal is to programmatically find PXI chassis and iterate into the PXI slots, getting informations of each PXI module (if present).
The only piece that I am missing is the PXI chassis number to use with the system filter in order to be sure that i'am looking at a module that resides inside the PXI chassis i have considered.
In the attachment a little piece of my code.
Can somebody help me?
Solved! Go to Solution.
10-28-2019 12:05 PM
It's better to include your VI. The following will find all chassis and all DAQmx devices in the chassis. The slot number can gotten by a property node as shown in the snippet. V2016 attached.
mcduff
10-28-2019 12:20 PM
Hi mcduff thanks for replying!
I'am still missing a part:
Suppose that you have 3 PXI chassis with some devices inside each of them and in the same slot positions;
How can you tell the parent chassis of each device?
10-28-2019 12:27 PM
When looking at the chassis properties, there is a property called ProvLink, it is in the snippet I included. That number will be identical to the ConnLink Property for each device in the chassis. (Also included in the snippet.) Match these numbers and you can tell which chassis is the parent and which device goes in which chassis.
mcduff
10-29-2019 03:02 AM
OK it seems to work!
Thank you!
10-29-2019 08:08 AM
@FreddyV wrote:
OK it seems to work!
Thank you!
Here's a suggestion that I use when finding all of my instruments.
Make a cluster with the following items following this order:
Now once you find everything you will have an array of clusters. If you sort the cluster, using the sort function in the array palette, you will get Chassis1, Device(Slot 1), Device(Slot2), ... ,Chassis2, Device(Slot 1), Device(Slot2), etc. Everything will be sorted.
mcduff