Technical data

Introduction to Programming 3
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 67
Initializing the Interface and the Oscilloscope
To make sure the bus and all appropriate interfaces are in a known state,
begin every program with an initialization statement. When using the
Agilent VISA COM library, you can use the resource session object's Clear
method to clears the interface buffer:
Dim myMgr As VisaComLib.ResourceManager
Dim myScope As VisaComLib.FormattedIO488
Set myMgr = New VisaComLib.ResourceManager
Set myScope = New VisaComLib.FormattedIO488
' Open the connection to the oscilloscope. Get the VISA Address from the
' Agilent Connection Expert (installed with Agilent IO Libraries Suite).
Set myScope.IO = myMgr.Open("<VISA Address>")
' Clear the interface buffer and set the interface timeout to 10 seconds
.
myScope.IO.Clear
myScope.IO.Timeout = 10000
When you are using GPIB, CLEAR also resets the oscilloscope's parser. The
parser is the program which reads in the instructions which you send it.
After clearing the interface, initialize the instrument to a preset state:
myScope.WriteString "*RST"
See Also "Autoscale" on page 67
"Setting Up the Oscilloscope" on page 68
Autoscale
The AUTOSCALE feature of Agilent Technologies digitizing oscilloscopes
performs a very useful function on unknown waveforms by automatically
setting up the vertical channel, time base, and trigger level of the
oscilloscope.
The syntax for the autoscale function is:
:AUTOSCALE<terminator>
NOTE
Information for Initializing the Instrument
The actual commands and syntax for initializing the instrument are discussed in Chapter 13,
“Common Commands,” starting on page 227.
Refer to the Agilent IO Libraries Suite documentation for information on initializing the
interface.