Capturing Data With The :Digitize Command - Agilent Technologies InfiniiVision 7000A Series Programmer's Manual

Table of Contents

Advertisement

Vertical is set to 16 V full- scale (2 V/div) with center of screen at 1 V and
probe attenuation set to 10. This example sets the time base at 1 ms
full- scale (100 ms/div) with a delay of 100 µs.
Example Oscilloscope Setup Code
This program demonstrates the basic command structure used to program
the oscilloscope.
' Initialize the instrument interface to a known state.
myScope.IO.Clear
' 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 10"
myScope.WriteString ":CHANnel1:RANGe 1.6"
myScope.WriteString ":CHANnel1:OFFSet -.4"
myScope.WriteString ":CHANnel1:COUPling DC"
' Configure the instrument to trigger at -0.4 volts with normal
' triggering.
myScope.WriteString ":TRIGger:SWEep NORMal"
myScope.WriteString ":TRIGger:LEVel -.4"
myScope.WriteString ":TRIGger:SLOPe POSitive" ' Trigger on pos. slope.
' Configure the instrument for normal acquisition.
myScope.WriteString ":ACQuire:TYPE NORMal"

Capturing Data with the :DIGitize Command

The :DIGitize command captures data that meets the specifications set up
by the :ACQuire subsystem. When the digitize process is complete, the
acquisition is stopped. The captured data can then be measured by the
instrument or transferred to the controller for further analysis. The
captured data consists of two parts: the waveform data record, and the
preamble.
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide
Getting Started
' Time base to 50 us/div.
' Delay to zero.
' Display ref. at
' center.
' Probe attenuation
' to 10:1.
' Vertical range
' 1.6 V full scale.
' Offset to -0.4.
' Coupling to DC.
' Normal triggering.
' Trigger level to -0.4.
' Normal acquisition.
3
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents