Agilent Technologies 6000 Series quick start Following program example shows a typical setup

Page 23

N O T E

Getting Started

2

The following program example shows a typical setup:

myScope.WriteString ":ACQUIRE:TYPE AVERAGE" myScope.WriteString ":ACQUIRE:COMPLETE 100" myScope.WriteString ":ACQUIRE:COUNT 8" myScope.WriteString ":DIGITIZE CHANNEL1" myScope.WriteString ":WAVEFORM:SOURCE CHANNEL1" myScope.WriteString ":WAVEFORM:FORMAT BYTE" myScope.WriteString ":WAVEFORM:POINTS 500" myScope.WriteString ":WAVEFORM:DATA?"

This setup places the instrument into the averaged mode with eight averages. This means that when the :DIGitize command is received, the command will execute until the signal has been averaged at least eight times.

After receiving the :WAVeform:DATA? query, the instrument will start passing the waveform information.

Digitized waveforms are passed from the instrument to the controller by sending a numerical representation of each digitized point. The format of the numerical representation is controlled with the :WAVeform:FORMat command and may be selected as BYTE, WORD, or ASCii.

The easiest method of transferring a digitized waveform depends on data structures, formatting available and I/O capabilities. You must scale the integers to determine the voltage value of each point. These integers are passed starting with the left most point on the instrument’s display.

For more information, see the waveform subsystem commands and corresponding program code examples in the online Programmer’s Reference.

Aborting a Digitize Operation Over GPIB

When using GPIB, you can abort a digitize operation by sending a Device Clear over the bus (for example, myScope.IO.Clear).

Agilent 6000 Series Oscilloscopes Programmer’s Quick Start Guide

23

Image 23
Contents Programmer’s Quick Start Guide WA R N I N G Programming the Oscilloscope-At a Glance This Book Contents Index Setting Up Connect and set up the oscilloscope Install Agilent IO Libraries Suite softwareUsing the LAN Interface Using the USB Device InterfaceUsing the Gpib Interface Verify the oscilloscope connection Click Test Connection Setting Up To get the latest versions via the web Access the Programmer’s ReferenceTo access the Programmer’s Reference help file Language for Program Examples Getting StartedInitializing Basic Oscilloscope Program StructureAnalyzing Captured Data Capturing DataReferencing the IO Library Programming the OscilloscopeOpening the Oscilloscope Connection via the IO Library Information for Initializing the Instrument Using AUToscale to Automate Oscilloscope Setup Initializing the Interface and the Oscilloscope Example Oscilloscope Setup Code Using Other Oscilloscope Setup CommandsEnsure New Data is Collected Capturing Data with the DIGitize CommandSet TIMebaseMODE to Main or DELayed when using DIGitize Aborting a Digitize Operation Over Gpib Following program example shows a typical setupReading Query Responses from the Oscilloscope Reading Query Results into Numeric Variables Express String Variables Using Exact SyntaxReading Query Results into String Variables #8000010001000 bytes of dataterminator Reading Definite-Length Block Query Response DataChecking Instrument Status Sending Multiple Queries and Reading ResultsTelnet Sockets Other Ways of Sending CommandsSending Scpi Commands using Browser Web Control Index Index Page Index
Related manuals
Manual 368 pages 7.71 Kb