03-17-2016 02:21 PM - edited 03-17-2016 02:36 PM
Hi,
I'm using LV 2015, 32bit on windows 7x64. I have an NI PXIe-1065 connected to the PCI bus of the computer. I have several instruments in the PXI chassis included some switch cards, a scope and a PXI-4070 DMM.
when I run the VISA resource finder, the result will show me all of the PXI cards in the chassis (as well as the serial port on the computer) but it will not find the PXI-4070.
NI MAX shows the card and I can run self test and open the interactive panels in MAX. I have saved the NAME (not alias) of the PXI-4070 as "PXI-4070"
I can also use the DMM using NI-DMM drivers just fine.
the address of the PXI-4070 in MAX is: PXI24::15::INSTR
I need to be able to programmatically detect which PXI/PXIe cards are in my chassis so that I can set them up as the system in the configuration that it's in. can anyone help me understand why the VISA resource finder won't see the PXI-4070 and report it?
Solved! Go to Solution.
03-17-2016 03:11 PM - edited 03-17-2016 03:18 PM
My apologies. I edited the post above once and it won't let me edit it again. I guess there's a one time limit?
anyway, I was incorrect in my problem description above. the problem is not that the VISA Resource Finder won't find it, it's that when I try to OPEN the PXI-4070 using VISA OPEN and the input "PXI-4070" it returns the error stating it can't find the resource.
-1073807343 is the error code. "possible reasons: VISA: (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.
03-17-2016 03:21 PM
The same error occurs even if I use the PXI24::15::INSTR as the input to the VISA OPEN command.
03-17-2016 05:31 PM
What is wrong with just using the NI-DMM drivers to control the PXI-4070? It would be a lot simpler.
03-18-2016 08:43 AM - edited 03-18-2016 08:44 AM
Before using the NI DMM drivers, I'm trying to simply open ALL instruments using VISA open, then get each instruments' attributes (model, name, mfg, serial number, pxi chassis and slot number, etc). I'm doing that through a loop tied to the array I get from the FIND RESOURCE output.
I don't want to make an exception just for the DMM to do it a different way. So from my perspective THIS particular part of the program wouldn't be easier using the NI DMM drivers (I will be using them once I've established the configuration of the test equipment).
why wouldn't this method work like it does for all other instruments?
03-18-2016 09:31 AM
Hi Reece,
Have you tried using the NI System Configuration API? It allows you to programmatically query all of the hardware on your system. Here's some more information on the API:
http://zone.ni.com/reference/en-XX/help/373107J-01/nisyscfg/introduction
https://decibel.ni.com/content/docs/DOC-13216
https://decibel.ni.com/content/docs/DOC-29606
03-18-2016 09:38 AM
Thank you, Sunayna R.
This looks like exactly what I need.
03-18-2016 10:15 AM
No problem!