Agilent Technologies 42D Betriebsanweisung

Stöbern Sie online oder laden Sie Betriebsanweisung nach Nein Agilent Technologies 42D herunter. Agilent Technologies 42D User`s guide Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 110
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 0
1 2 3 4 5 6 ... 109 110

Inhaltsverzeichnis

Seite 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

Seite 2 - Programming the Oscilloscope

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

Seite 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

Seite 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

Seite 5 - Contents

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

Seite 6 - 6 Status Reporting

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

Seite 7 - Introduction to Programming

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

Seite 8

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

Seite 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

Seite 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

Seite 11

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

Seite 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

Seite 13

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

Seite 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

Seite 15 - Query Command

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

Seite 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

Seite 17 - Program Data Syntax Rules

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

Seite 18

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

Seite 19 - Program Message Terminator

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

Seite 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

Seite 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

Seite 22

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

Seite 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

Seite 24 - Autoscale

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

Seite 25 - Setting Up the Instrument

2 Programming Getting Started

Seite 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

Seite 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

Seite 28

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

Seite 29

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

Seite 30 - String Variables

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

Seite 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

Seite 32

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

Seite 33 - Instrument Status

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

Seite 34

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

Seite 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

Seite 36

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

Seite 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

Seite 38 - Addressing

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

Seite 40 - Bus Commands

3 Programming over GPIB

Seite 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

Seite 42

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

Seite 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

Seite 44

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

Seite 45

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

Seite 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

Seite 47

4 Programming over RS-232-C

Seite 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

Seite 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

Seite 50

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

Seite 51 - Command Set Organization

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

Seite 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

Seite 53

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

Seite 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

Seite 55

5 Programming and Documentation Conventions

Seite 56

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

Seite 57

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

Seite 58

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

Seite 59

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

Seite 60

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

Seite 61

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

Seite 62

5-7Programming and Documentation ConventionsThe Command Tree

Seite 63 - Truncation Rules

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

Seite 64 - Response Generation

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

Seite 65

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

Seite 66 - Program Examples

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

Seite 67 - Status Reporting

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

Seite 68

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

Seite 69 - Figure 6-1

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

Seite 70

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

Seite 71

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

Seite 72 - Figure 6-2

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

Seite 73 - Figure 6-2 (continued)

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

Seite 74 - Status Byte Register (SBR)

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

Seite 75

6 Status Reporting

Seite 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

Seite 77

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

Seite 78

1 Introduction to Programming

Seite 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

Seite 80 - Error Queue

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

Seite 81 - Message Queue

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

Seite 82 - Figure 6-3

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

Seite 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

Seite 84

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

Seite 85 - <drive>:\setup.exe

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

Seite 86

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

Seite 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

Seite 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),

Seite 89

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

Seite 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

Seite 91 - Suffix Multipliers

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

Seite 92

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

Seite 93

7Installing and Using the Programmer’s Reference

Seite 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

Seite 95

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

Seite 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

Seite 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

Seite 99

8 Programmer’s Quick Reference

Seite 100 - Commands and Queries

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

Seite 101

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

Seite 102

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

Seite 103

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

Seite 104

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

Seite 105

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

Seite 106

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

Seite 107

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

Seite 108

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

Seite 109

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

Seite 110

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

Kommentare zu diesen Handbüchern

Keine Kommentare