Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Get port binding info

Hi all.
Is there a reliable way to programmatically get know a com port to which a serial visa resource is bound? E.g. I can see in MAX that ASRL1 is bound to COM1 but how can I get this info in a VI at runtime (LV7 PDS, VISA 3.0)
Thanks in advance
0 Kudos
Message 1 of 2
(2,933 Views)
Hello,

I think the best way for you to get that information would be to read and parse the visaconf.ini file. That file contains all alias information, and you could write a subroutine that parsed that file and filters out the information you are looking for. That particular file can be found on your computer in the following directory:

C:\VXIPNP\WinNT\NIvisa

Hope this helps!

Regards,
Steven B.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,933 Views)