Agilent Technologies 42D User's Guide

Browse online or download User's Guide for Unknown Agilent Technologies 42D. Agilent Technologies 42D User`s guide User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 110
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Programmer’s Guide
Publication Number 54622-97038
September 2002
For Safety information see the pages behind the Index.
© Copyright Agilent Technologies 2000-2002
All Rights Reserved
Agilent 54621A/22A/24A/41A/42A
Oscilloscopes and
Agilent 54621D/22D/41D/42D
Mixed-Signal Oscilloscopes
Page view 0
1 2 3 4 5 6 ... 109 110

Summary of Contents

Page 1 - Mixed-Signal Oscilloscopes

Programmer’s Guide Publication Number 54622-97038 September 2002 For Safety information see the pages behind the Index. © Copyright Agilent Technologi

Page 2 - Programming the Oscilloscope

1-4Introduction to ProgrammingProgram Message SyntaxProgram Message Syntax To program the instrument remotely, you must understand the command format

Page 3 - Analyze

8-12Programmer’s Quick ReferenceCommands and Queriesn/a *STB? <value> ::= 0 to 255; an integer in NR1 format, as shown in thefollowing: Bit Wei

Page 4 - In This Book

8-13Programmer’s Quick ReferenceCommands and Queries:TIMebase:RANGe <range_value> :TIMebase:RANGe? <range_value> ::= 50 ns through 500 s i

Page 5 - Contents

8-14Programmer’s Quick ReferenceCommands and Queries:TRIGGER:DURation:LESSthan<less than time> [suffix]:TRIGger:DURation:LESSthan? <less than

Page 6 - 6 Status Reporting

8-15Programmer’s Quick ReferenceCommands and Queries:TRIGger:GLITch:RANGe<greater than time> [suffix],<less than time> [suffix]:TRIGger:GL

Page 7 - Introduction to Programming

8-16Programmer’s Quick ReferenceCommands and Queries:TRIGger:SEQuence:EDGE{1 | 2}<source>, <slope>:TRIGger:SEQuence:EDGE{1 | 2}? <sourc

Page 8

8-17Programmer’s Quick ReferenceCommands and Queries:TRIGger:TV:STANdard <standard> :TRIGger:TV:STANdard? <standard> ::= {GENeric | NTSc |

Page 9 - Talking to the Instrument

8-18Programmer’s Quick ReferenceCommands and Queries:WAVeform:UNSigned {{0 | OFF} | {1 | ON}}:WAVeform:UNSigned? {0 | 1}:WAVeform:VIEW <view> :W

Page 10 - Program Message Syntax

IndexIndex-1AAnalyzing Data iiiArm event Register (ARM) 6-13AUToscale Command 2-4BBasic Operations 1-2Baud Rate 4-6Block Response Data 2-12Bus Command

Page 11

IndexIndex-2RRegistersClearing 6-15Response Generation 5-16Root Level Commands 5-6RQC 6-11RS232 Interface 4-2Cables 4-3Capabilities 4-7Configuration 4

Page 12

Agilent Technologies Inc.P.O. Box 21971900 Garden of the Gods RoadColorado Springs, CO 80901-2197, U.S.A.Safety NoticesThis apparatus has been designe

Page 13

1-5Introduction to ProgrammingProgram Message SyntaxInstructions Instructions (both commands and queries) normally appear as a string embedded in a st

Page 14 - Duplicate Mnemonics

Notices© Agilent Technologies, Inc. 2000-2002No part of this manual may be reproduced in any form or by any means (including electronic storage and re

Page 15 - Query Command

1-6Introduction to ProgrammingProgram Message SyntaxHeader Types There are three types of headers: • Simple Command headers • Compound Command headers

Page 16 - Program Header Options

1-7Introduction to ProgrammingCombining Commands from the Same SubsystemCombining Commands from the Same Subsystem To execute more than one function w

Page 17 - Program Data Syntax Rules

1-8Introduction to ProgrammingDuplicate MnemonicsDuplicate Mnemonics Identical function mnemonics can be used in more than one subsystem. For example,

Page 18

1-9Introduction to ProgrammingQuery CommandQuery Command Command headers immediately followed by a question mark (?) are queries. After receiving a qu

Page 19 - Program Message Terminator

1-10Introduction to ProgrammingProgram Header OptionsProgram Header Options You can send program headers using any combination of uppercase or lowerca

Page 20

1-11Introduction to ProgrammingProgram Data Syntax RulesProgram Data Syntax Rules Prog ram data is used to convey a par am eter information related t

Page 21 - Programming Getting Started

1-12Introduction to ProgrammingProgram Data Syntax RulesAll numbers must be strings of ASCII characters. Thus, when sending the number 9, you would se

Page 22

1-13Introduction to ProgrammingProgram Message TerminatorProgram Message Terminator The program instructions within a data message are executed after

Page 23 - Initialization

iiProgramming the Oscilloscope When you attach an interface module to the rear of the oscilloscope, it becomes programmable. That is, you can hook a c

Page 24 - Autoscale

1-14Introduction to ProgrammingSelecting Multiple SubsystemsSelecting Multiple Subsystems You can send multiple program commands and program queries f

Page 25 - Setting Up the Instrument

2 Programming Getting Started

Page 26 - Example Program

2-2Programming Getting Started This chapter explains how to set up the instrument, how to retrieve setup information and measurement results, how to d

Page 27 - Using the DIGitize Command

2-3Programming Getting StartedInitializationInitialization To make sure the bus and all appropriate interfaces are in a known state, begin every progr

Page 28

2-4Programming Getting StartedAutoscaleAutoscale The AUTOSCALE feature performs a very useful function for unknown waveforms by setting up the vertica

Page 29

2-5Programming Getting StartedSetting Up the InstrumentSetting Up the Instrument A typical oscilloscope setup would set the vertical range and offset

Page 30 - String Variables

2-6Programming Getting StartedExample ProgramExample Program This program demonstrates the basic command structure used to program the oscilloscope. 1

Page 31 - Numeric Variables

2-7Programming Getting StartedUsing the DIGitize CommandUsing the DIGitize Command The DIGitize command is a macro that captures data satisfying the s

Page 32

2-8Programming Getting StartedUsing the DIGitize CommandThe following program example shows a typical setup: OUTPUT 707;":ACQUIRE:TYPE AVERAGE&qu

Page 33 - Instrument Status

2-9Programming Getting StartedReceiving Information from the InstrumentReceiving Information from the Instrument After receiving a query (command head

Page 34

iiiCapture Once you initialize the oscilloscope, you can begin capturing data for analysis. Remember that while the oscilloscope is responding to comm

Page 35 - Programming over GPIB

2-10Programming Getting StartedString VariablesString Variables The output of the instrument may be numeric or character data depending on what is que

Page 36

2-11Programming Getting StartedNumeric VariablesNumeric Variables The following example shows the data being returned to a numeric variable: 10 OUTPUT

Page 37 - Command and Data Concepts

2-12Programming Getting StartedDefinite-Length Block Response DataDefinite-Length Block Response Data Definite-length block response data allows any t

Page 38 - Addressing

2-13Programming Getting StartedMultiple QueriesMultiple Queries You can send multiple queries to the instrument within a single program message, but y

Page 40 - Bus Commands

3 Programming over GPIB

Page 41 - Programming over RS-232-C

3-2Programming over GPIB This section describes the GPIB interface functions and some general concepts. In general, these functions are defined by IEE

Page 42

3-3Programming over GPIBInterface CapabilitiesInterface Capabilities The interface capabilities of the oscilloscope, as defined by IEEE 488.1, are SH1

Page 43 - Interface Operation

3-4Programming over GPIBAddressingAddressing To set up the GPIB interface (optional Agilent N2757A GPIB Interface Module must be connected to the osci

Page 44

3-5Programming over GPIBCommunicating Over the BusCommunicating Over the Bus Because GPIB can address multiple devices through the same interface card

Page 45

ivIn This Book This Programmer’s Guide is your introduction to programming the oscilloscope using an instrument controller. This book, with the Progra

Page 46 - Configuring the Interface

3-6Programming over GPIBLockoutLockoutWith GPIB, the instrument is placed in the lockout mode by sending the local lockout command (LLO). The instrume

Page 47

4 Programming over RS-232-C

Page 48 - Lockout Command

4-2Programming over RS-232-C This section describes the interface functions and some general concepts of the RS-232-C interface. The RS-232-C interfac

Page 49 - Conventions

4-3Programming over RS-232-CInterface OperationInterface Operation The oscilloscope can be programmed with a controller over RS-232-C using either a m

Page 50

4-4Programming over RS-232-CMinimum Three-Wire Interface with Software ProtocolMinimum Three-Wire Interface with Software Protocol With a three-wire i

Page 51 - Command Set Organization

4-5Programming over RS-232-CExtended Interface with Hardware HandshakeExtended Interface with Hardware Handshake With the extended interface, both the

Page 52 - Alphabetic Command Reference

4-6Programming over RS-232-CConfiguring the InterfaceThe TD (Transmit Data) line from the oscilloscope must connect to the RD (Receive Data) line on t

Page 53

4-7Programming over RS-232-CInterface CapabilitiesInterface Capabilities The baud rate, stop bits, parity, handshake protocol, and data bits must be c

Page 54 - The Command Tree

4-8Programming over RS-232-CLockout CommandLockout CommandTo lockout the front panel controls use the system command LOCK. When this function is on, a

Page 55

5 Programming and Documentation Conventions

Page 56

ContentsContents-11 Introduction to ProgrammingTalking to the Instrument 1-3Program Message Syntax 1-4Combining Commands from the Same Subsystem 1-

Page 57

5-2Programming and Documentation Conventions This chapter covers conventions used in programming the instrument, as well as conventions used in the on

Page 58

5-3Programming and Documentation ConventionsCommand Set OrganizationCommand Set Organization The command set is divided into common commands, root lev

Page 59

5-4Programming and Documentation ConventionsCommand Set OrganizationTable 5-1Alphabetic Command Reference Command Subsystem Where usedACKNowledge TRIG

Page 60

5-5Programming and Documentation ConventionsCommand Set Organization*PMC CommonPMODe CHANnel<n>POINts ACQuirePOINts WAVeformPOLarity TRIGger:TVP

Page 61

5-6Programming and Documentation ConventionsThe Command TreeThe Command Tree The command tree shows all of the commands and the relationships of the c

Page 62

5-7Programming and Documentation ConventionsThe Command Tree

Page 63 - Truncation Rules

5-8Programming and Documentation ConventionsThe Command TreeSubsystem Commands Subsystem commands are grouped together under a common node of the comm

Page 64 - Response Generation

5-9Programming and Documentation ConventionsThe Command TreeExample 2: OUTPUT 707;":TIMEBASE:REFERENCE CENTER ; DELAY 0.00001" or OUTPUT 707

Page 65

5-10Programming and Documentation ConventionsObsolete and Discontinued CommandsObsolete and Discontinued CommandsCore CommandsCore commands are a comm

Page 66 - Program Examples

5-11Programming and Documentation ConventionsObsolete and Discontinued CommandsObsolete CommandsObsolete commands are older forms of commands that are

Page 67 - Status Reporting

ContentsContents-25 Programming and Documentation ConventionsCommand Set Organization 5-3The Command Tree 5-6Obsolete and Discontinued Commands 5-10

Page 68

5-12Programming and Documentation ConventionsObsolete and Discontinued CommandsFUNCtion:VIEW FUNCtion:DISPlayHARDcopy:DEVice HARDcopy:FORMat PLOTter,

Page 69 - Figure 6-1

5-13Programming and Documentation ConventionsObsolete and Discontinued CommandsDiscontinued CommandsDiscontinued commands are commands that were used

Page 70

5-14Programming and Documentation ConventionsObsolete and Discontinued CommandsDiscontinued ParametersSome previous oscilloscope queries returned cont

Page 71

5-15Programming and Documentation ConventionsTruncation RulesTruncation Rules The truncation rule for the mnemonics used in headers and alpha argument

Page 72 - Figure 6-2

5-16Programming and Documentation ConventionsInfinity RepresentationInfinity Representation The representation of infinity is 9.9E+37. This is also th

Page 73 - Figure 6-2 (continued)

5-17Programming and Documentation ConventionsNotation Conventions and DefinitionsNotation Conventions and Definitions The following conventions and de

Page 74 - Status Byte Register (SBR)

5-18Programming and Documentation ConventionsProgram ExamplesProgram Examples The BASIC program examples given for commands in the online Programmer’s

Page 75

6 Status Reporting

Page 76 - Trigger Event Register (TRG)

6-2Status Reporting Figure 6-1 is an overview of the oscilloscope’s status reporting structure. The status reporting structure allows monitoring spec

Page 77

6-3Status ReportingFigure 6-1Status Reporting Overview Block DiagramThe status reporting structure consists of the registers in figure 6-1.

Page 78

1 Introduction to Programming

Page 79 - Arm Event Register (ARM)

6-4Status ReportingTable 6-1 is a list of the bit definitions for the bit in the status reporting data structure. Table 6-1Status Reporting Bit Defini

Page 80 - Error Queue

6-5Status ReportingStatus Reporting Data StructuresStatus Reporting Data Structures Figure 6-2 brings together the different status reporting data str

Page 81 - Message Queue

6-6Status ReportingStatus Reporting Data StructuresFigure 6-2Status Reporting Data Structures

Page 82 - Figure 6-3

6-7Status ReportingStatus Reporting Data StructuresFigure 6-2 (continued)Status Reporting Data Structures

Page 83 - Reference

6-8Status ReportingStatus Byte Register (SBR)Status Byte Register (SBR) The Status Byte Register is the summary-level register in the status reporting

Page 84

6-9Status ReportingStatus Byte Register (SBR)Example The following example uses the *STB? query to read the contents of the oscilloscopes Status Byte

Page 85 - <drive>:\setup.exe

6-10Status ReportingService Request Enable Register (SRER)Service Request Enable Register (SRER) Setting the Service Request Enable Register bits enab

Page 86

6-11Status ReportingStandard Event Status Register (SESR)Standard Event Status Register (SESR) The Standard Event Status Register (SESR) monitors the

Page 87 - To start the help file

6-12Status ReportingStandard Event Status Enable Register (SESER)Standard Event Status Enable Register (SESER) To allow any of the Standard Event Stat

Page 88

6-13Status ReportingOperation Status Register (OPR)Operation Status Register (OPR) This register hosts the RUN bit (bit 3), the WAIT TRIG bit (bit 5),

Page 89

1-2Introduction to Programming Chapters 1 and 2 introduce the basics for remote programming of an oscilloscope. The programming instructions in this m

Page 90 - Introduction

6-14Status ReportingError QueueError Queue As errors are detected, they are placed in an error queue. This queue is first in, first out. If the error

Page 91 - Suffix Multipliers

6-15Status ReportingOutput QueueOutput Queue The output queue stores the oscilloscope-to-controller responses that are generated by certain instrument

Page 92

6-16Status ReportingClearing Registers and QueuesFigure 6-3Status Reporting Decision Chart

Page 93

7Installing and Using the Programmer’s Reference

Page 94

7-2Installing and Using the Programmer’s Reference The Programmer’s Reference is supplied as an online help file readable with the Microsoft Windows h

Page 95

7-3Installing and Using the Programmer’s ReferenceTo install the help file under Microsoft WindowsTo install the help file under Microsoft Windows The

Page 96

7-4Installing and Using the Programmer’s ReferenceTo get updated help and program files via the InternetTo get updated help and program files via the

Page 97

7-5Installing and Using the Programmer’s ReferenceTo start the help fileTo start the help file To open the help file under Microsoft Windows, double-c

Page 99

8 Programmer’s Quick Reference

Page 100 - Commands and Queries

1-3Introduction to ProgrammingTalking to the InstrumentTalking to the Instrument Computers acting as controllers communicate with the instrument by se

Page 101

8-2Introduction The Programmer’s Quick Reference provides the commands and queries with their corresponding arguments and returned formats for the osc

Page 102

8-3Programmer’s Quick ReferenceConventionsConventions The following conventions used in this guide include: Suffix Multipliers The following suffix mu

Page 103

8-4Programmer’s Quick ReferenceCommands and QueriesCommands and Queries The following tables facilitate easy access to each command and query for the

Page 104

8-5Programmer’s Quick ReferenceCommands and Queries:CHANnel<n>:IMPedence <impedence>:CHANnel<n>:IMPedence? <impedence> ::= {ON

Page 105

8-6Programmer’s Quick ReferenceCommands and Queries:DISPlay:DATA [format][,][area]<display data>:DISPlay:DATA? [format][,][area] <format>

Page 106

8-7Programmer’s Quick ReferenceCommands and Queries:FUNCtion:RANGe <range> :FUNCtion:RANGe? <range> ::= the full-scale vertical axis value

Page 107

8-8Programmer’s Quick ReferenceCommands and Queriesn/a :MARker:XDELta? <return_value> ::= X cursors delta value in NR3 format :MARKer:Y1Position

Page 108

8-9Programmer’s Quick ReferenceCommands and Queries:MEASure:PERiod [<source>] :MEASure:PERiod? [<source>] <source> ::= {CHANnel<n

Page 109

8-10Programmer’s Quick ReferenceCommands and Queries:MEASure:VBASe [<source>] :MEASure:VBASe? [<source>] <source> ::= {CHANnel<n&

Page 110

8-11Programmer’s Quick ReferenceCommands and QueriesOVLenable <mask> OVLenable? <mask> ::= 8-bit integer in NR1 format as shown, 54640-se

Comments to this Manuals

No comments