Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically changing VISA alias of an instrument

Can I change the visa alias of an instrument using CVI??. I want to automate change this so that the user does not have to use Max to configure the instrument.
0 Kudos
Message 1 of 3
(3,432 Views)
The NI-VISA configuration is stored in C:/VXIpnp/WinNT/NIvisa/visaconf.ini, as "INI" file style format.  You can use GetPrivateProfileString() and WritePrivateProfileString() API to access it.
 
However, mind that the visaconf.ini is very specific to NI-VISA.  This approach has no meaning for other vendor's VISA.

このメッセージは 06-27-2007 11:15 AMに Makoto が編集しています。

0 Kudos
Message 2 of 3
(3,427 Views)
Just wanted to point out that LabVIEW has configuration file VIs that read/write .ini files, so you don't need to resort to Windows API calls. Smiley Wink
0 Kudos
Message 3 of 3
(3,413 Views)