LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Where do I fin the list of instruments on a PC that MAX finds?

Solved!
Go to solution
Is there a file that I can read that has the list of instruments that is discovered by MAX?
0 Kudos
Message 1 of 9
(4,582 Views)

Hello ASIC IIBU Tech,

It depends what kind of instruments you are looking for.  If you are looking for information about your PXI chassis you should look at KnowledgeBase 1EGB71UI: What Are PXISYS.INI and CHASSIS.INI? for information on these .INI files.

If you are looking for VISA or GPIB devices found and described in MAX you can look at the visaconf.ini and gpib.ini files respectively. Information about the visaconf.ini file can be found in KnowledgeBase 4FDEG8C5: Where is the visaconf.ini File Located? Information about the gpib.ini file can be found in KnowledgeBase 4DH4ITHY: Where Can I Find The GPIB.INI File Created By The GPIB Configuration Utility...

Another option would be to create a MAX report. Information on doing this can be found in KnowledgeBase 3ST8N46P: Documenting Measurement & Automation Explorer (MAX) Configuration Informatio...

Regards,
Dan King

0 Kudos
Message 2 of 9
(4,560 Views)
Knowledge Base 4DH4ITHY link is hosed... The GPIB INI file looked like the answer but I did not get any info I was looking for, i.e.. Instrument ID query responses at address... so I guess I need to make my own. or is there a generic one available...
0 Kudos
Message 3 of 9
(4,541 Views)
Hello ASIC IIBU Tech,

Here is another try at the link to the KnowledgeBase:

KnowledgeBase 4DH4ITHY: Where Can I Find The GPIB.INI File Created By The GPIB Configuration Utility...

If this doesn't help could you give a little more explanation on exactly what you are looking for?

Regards,
Dan King

0 Kudos
Message 4 of 9
(4,522 Views)

Hi Dan,

  Thanks for the other site...  I was looking to for a "found instruments" list on the GPIB bus for example. In some of my code I wanted to be able to see if an instrument was available for troubleshooting, and what address it was. So maybe some home grown code is in order to do this, at least it would be better than MAX because MAX keeps resetting my HP 6624 power supplies when run, a bad thing during a test. If I was diligent and remembered to run a find all instruments on the bus, this list was available with Vendor names with model numbers, this would be easy to find what was available to use as a TS tool, then init, and start pulling waveforms and the like... at least that is where I am going in the thought process. Ideas? 

0 Kudos
Message 5 of 9
(4,517 Views)
Hello ASIC IIBU Tech,

You could try writing a LabVIEW program that would use the VISA Find Resource VI (found under your Functions Pallete under Instrument I/O»VISA»VISA Advanced) to generate a list of VISA resources on your PC. From here you could pass the ouput string into a for loop and try to open sessions and find if you can return the name of any devices with a *IDN? command.

Here is an example of the code I mentioned:

Message Edited by Dan_K on 02-02-2009 10:29 AM

Regards,
Dan King

0 Kudos
Message 6 of 9
(4,482 Views)

Thanks for the offer  but I work in CVI only. No "g" for me...  smileyvery-happy:. I am perfectly happy building my objects in 'C'

 

Cheers!

ChipB

0 Kudos
Message 7 of 9
(4,473 Views)
Solution
Accepted by topic author ASIC_LabRat

Hi ChipB,

VISA library is available in CVI also, as you surely know Smiley Wink

The procedure suggested by Dan can be replicated using viFindRsrc () and viFindNext () commands to create the list of instruments, next passing each of them to viOpen to test wether it's present in the system or not.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 8 of 9
(4,464 Views)

Here ya go... I built this for grins...

or on my NI page:  https://decibel.ni.com/content/docs/DOC-23034

Cheers!

Asic LabRat 🙂

Download All
0 Kudos
Message 9 of 9
(3,793 Views)