Programming Examples 36
Keysight InfiniiVision DSOX1204A/G Oscilloscopes Programmer's Guide 901
• Windows 7: C:\ProgramData\Agilent\Command Expert\ScpiNetDrivers
d Select the .dll file for your oscilloscope, for example
AgInfiniiVision2000X_01_20.dll; then, click OK.
e Right-click the project you wish to modify (not the solution) in the Solution
Explorer window of the Microsoft Visual Studio environment and choose
Properties; then, select "InfiniiVision.ScpiNetInstrumentApp" as the Startup
object.
8 Add a reference to the VISA.NET driver:
a Right-click the project you wish to modify (not the solution) in the Solution
Explorer window of the Microsoft Visual Studio environment.
b Choose Add Reference....
c In the Reference Manager dialog box, under Assemblies, select Extensions.
d In the "Targeting: .NET Framework 4.5.2" list, select the Ivi.Visa Assembly
check box; then, click OK.
9 Specify the Startup object:
a Right-click the project you wish to modify (not the solution) in the Solution
Explorer window of the Microsoft Visual Studio environment.
b Choose Properties.
c In the Properties dialog box, under Application, select the Startup object: field
and choose Sub Main.
d Save your change and close the Properties dialog box.
10 Build and run the program.
For more information, see the VISA.NET driver help that comes with Keysight
Command Expert.
'
' Keysight VISA.NET Example in VB.NET
' -------------------------------------------------------------------
' This program illustrates a few commonly used programming
' features of your Keysight InfiniiVision oscilloscope.
' -------------------------------------------------------------------
Imports System
Imports System.IO
Imports System.Collections.Generic
Imports System.Text
Imports Ivi.Visa
Imports Ivi.Visa.FormattedIO
Namespace Example
Class Program
Public Shared Sub Main(args As String())
' Change this variable to the address of your instrument