12-23-2021 11:04 AM
Seemed simple enough...
I need to detect all of the cards in my NI PXI chassis before our software starts. All I really need is each card's slot number and device name. Using VISA it's easy except for Serial cards (ASRL devices). These show up in a separate list and do not include the slot number. How do I get the slot number of (say, a PXIe-8431 card) using VISA?? My guess is you can't. However, the slot number shows up nicely in NI-MAX! How can duplicate that behavior??
Solved! Go to Solution.
12-23-2021 06:19 PM
Yes, there is the System Configuration APIs that provide access to NI MAX.
"Show All Hardware" example does a part of your requirement
You can install these APIs from https://www.ni.com/en-us/support/downloads/drivers/download.system-configuration.html#409835
01-04-2022 10:45 AM
Santhosh,
Thanks so much for your reply and it MIGHT answer my question. However, we don't really use LabView here and a LabView answer isn't ideal in this case (maybe possible if we run out of options). I'm wanting to use Visual Studio for my solution.
I downloaded the System Configuration APIs and see the API call "NISysCfgFindHardware " (which I am assuming the magic call I need) in the header file "nisyscfg.h". Am I on the right track?? The bad news is I can find no example code on my hard drive after the install and I can't find a single example on the Internet.
01-04-2022 03:24 PM
This article describes the .NET examples - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x5A9CAI&l=en-US