Agilent Technologies 6000 Series quick start Basic Oscilloscope Program Structure, Initializing

Page 16

2Getting Started

Basic Oscilloscope Program Structure

The following figure shows the basic structure of every program you will write for the oscilloscope.

Initializing

To ensure consistent, repeatable performance, you need to start the program, controller, and oscilloscope in a known state. Without correct initialization, your program may run correctly in one instance and not in another. This might be due to changes made in configuration by previous program runs or from the front panel of the oscilloscope.

Program initialization defines and initializes variables, allocates memory, or tests system configuration.

Controller initialization ensures that the interface to the oscilloscope (GPIB, LAN, or USB) is properly set up and ready for data transfer.

Oscilloscope initialization sets the channel configuration, channel labels, threshold voltages, trigger specification, trigger mode, timebase, and acquisition type.

16

Agilent 6000 Series Oscilloscopes Programmer’s Quick Start Guide

Image 16
Contents Programmer’s Quick Start Guide WA R N I N G Programming the Oscilloscope-At a Glance This Book Contents Index Setting Up Install Agilent IO Libraries Suite software Connect and set up the oscilloscopeUsing the USB Device Interface Using the LAN InterfaceUsing the Gpib Interface Verify the oscilloscope connection Click Test Connection Setting Up To access the Programmer’s Reference help file Access the Programmer’s ReferenceTo get the latest versions via the web Getting Started Language for Program ExamplesBasic Oscilloscope Program Structure InitializingCapturing Data Analyzing Captured DataProgramming the Oscilloscope Referencing the IO LibraryOpening the Oscilloscope Connection via the IO Library Initializing the Interface and the Oscilloscope Using AUToscale to Automate Oscilloscope SetupInformation for Initializing the Instrument Using Other Oscilloscope Setup Commands Example Oscilloscope Setup CodeSet TIMebaseMODE to Main or DELayed when using DIGitize Capturing Data with the DIGitize CommandEnsure New Data is Collected Following program example shows a typical setup Aborting a Digitize Operation Over GpibReading Query Responses from the Oscilloscope Reading Query Results into String Variables Express String Variables Using Exact SyntaxReading Query Results into Numeric Variables Reading Definite-Length Block Query Response Data #8000010001000 bytes of dataterminatorSending Multiple Queries and Reading Results Checking Instrument StatusSending Scpi Commands using Browser Web Control Other Ways of Sending CommandsTelnet Sockets Index Index Page Index
Related manuals
Manual 368 pages 7.71 Kb