Example Program - Agilent Technologies Infiniium 90000 Series Programmer's Manual

Oscilloscopes
Hide thumbs Also See for Infiniium 90000 Series:
Table of Contents

Advertisement

Example Program

This program demonstrates the basic command structure used to program
the oscilloscope.
' Initialize the instrument interface to a known state.
myScope.IO.Clear
myScope.IO.Timeout = 15000
' Initialize the instrument to a preset state.
myScope.WriteString "*RST"
' Set the time base mode to normal with the horizontal time at
' 50 ms/div with 0 s of delay referenced at the center of the
' graticule.
myScope.WriteString ":TIMebase:RANGe 5E-4"
myScope.WriteString ":TIMebase:DELay 0"
myScope.WriteString ":TIMebase:REFerence CENTer"
' Set the vertical range to 1.6 volts full scale with center screen
' at -0.4 volts with 10:1 probe attenuation and DC coupling.
myScope.WriteString ":CHANnel1:PROBe 1.0"
myScope.WriteString ":CHANnel1:RANGe 1.6"
myScope.WriteString ":CHANnel1:OFFSet -0.4"
myScope.WriteString ":CHANnel1:INPut DC"
' Configure the instrument to trigger at -0.4 volts with normal
' triggering.
myScope.WriteString ":TRIGger:SWEep NORMal"
myScope.WriteString ":TRIGger:LEVel CHAN1,-0.4"
4.
myScope.WriteString ":TRIGger:MODE EDGE"
myScope.WriteString ":TRIGger:EDGE:SLOPe POSitive" ' Trigger on pos. slo
pe.
' Configure the instrument for normal acquisition.
myScope.WriteString ":ACQuire:MODE RTIMe"
myScope.WriteString ":SYSTem:HEADer OFF"
myScope.WriteString ":DISPlay:GRATicule FRAMe"
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
Introduction to Programming
' Set interface timeout to 15 seconds.
' Time base to 500 us/div.
' Delay to zero.
' Probe attenuation
' to 1:1.
' Vertical range
' 1.6 V full scale.
' Offset to -0.4.
' Coupling to DC.
' Normal triggering.
' Edge triggering
' Normal acquisition.
' Turn system headers off.
' Display ref. at
' center.
' Trigger level to -0.
' Grid off.
3
77

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents