Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VB script to control instrument

I am trying to control an instrument by GPIB and VB script. I want to use the .ShowConnectDialog object in VB script to open Visa but do not know the NI name. For Agilent Visa, it is Agt3494A1 then the .ShowConnectDialog.

0 Kudos
Message 1 of 3
(3,958 Views)

Hello Kmatthews,

 

I am unfamiliar with the ShowConnectDialog object. I have searched out site and could not find any information about that command and VISA. If you are just looking for the name of you device as VISA sees is, you can find this in Measurement & Automation Explorer(MAX). You can also set up VISA alias in MAX. This KB shows how to change the alias on your system. Let me know if this helps you out. Have a great day!

 

Best Regards,

 

Adam G 

National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(3,932 Views)

Whatever Agilent VISA may have in terms of its API is irrelevant since the NI software will have a different API. Thus, you need to look at the documentation for the NI software to see what's available. I would suggest looking at the VB examples that are installed when you install NI-488.2 and NI-VISA. While they are in VB, they can easily be adapted to run in VBScript.

0 Kudos
Message 3 of 3
(3,925 Views)