About this Manual We’ve added this manual to the Agilent website in an effort to help you support your product. This manual is the best copy we co
Output Queue 6–19Message Queue 6–19Key Queue 6–19Clearing Registers and Queues 6–197 Installing and Using the Programmer’s ReferenceTo install the
Command Query Options and Query Returns:MEASure:NWIDth[<source>]:MEASure:NWIDth?[<source>]<source> ::= {ANALog1 | ANALog2 | DIGital0
Command Query Options and Query Returnsn/a :MEASure:VDELta? <return_value> ::= delta V value in volts in NR3 format:MEASure:VMAX[<source>]
Command Query Options and Query Returns*SRE <mask>*SRE? <mask> ::= sum of all bits that are set, 0 to 255; an integer in NR1format. <ma
Command Query Options and Query Returns:SYSTem:LOCK <value>:SYSTem:LOCK? <value> ::= {ON | OFF}:SYSTem:SETup <setup_data>:SYSTem:SE
Command Query Options and Query Returns:TRIGGER:ADVanced:PATTern1<value> , <mask>:TRIGger:ADVanced:PATTern1? < value> ::= integer in
Command Query Options and Query Returns:TRIGger:GLITch:QUALifier{GREaterthan | LESSthan |RANGe}:TRIGger:GLITch:QUALifier? {GREaterthan | LESSthan | RA
Command Query Options and Query Returns:TRIGger:TV:TVMode <mode>:TRIGger:TV:TVMode? <mode> ::= {LINE | FIELD1 | FIELD2 | VERTical}
Command Query Options and Query Returns:WAVeform:SOURce <source>or:WAVeform:SOURce:FUNCtion <channel>:WAVeform:SOURce? <source> ::
IndexAAddress 707, 2–9Addressing, 3–4the instrument, 3–5alpha argument, 5–10Arguments, 1–5Arm Event Register (ARM), 6–17availability
program commands, 1–12program data, 1–10queries, 2–12subsystems, 1–12NNL, 1–12, 5–6Notation Conventions and Definitions,5–12Numericdata
Contents–4
© Copyright Hewlett-Packard Company 1996All Rights Reserved.Microsoft is a registeredtrademark of MicrosoftCorporation.Reproduction, adaptation, ortra
Product WarrantyThis Hewlett-Packardproduct has a warrantyagainst defects in materialand workmanship for a periodof three years from date ofshipment.
1Introduction to Programming
Introduction to ProgrammingChapters 1 and 2 introduce the basics for remote programming of anoscilloscope. The programming instructions in this manual
Talking to the InstrumentComputers acting as controllers communicate with the instrument bysending and receiving messages over a remote interface. Ins
Program Message SyntaxTo program the instrument remotely, you must understand the commandformat and structure expected by the instrument. The IEEE 488
InstructionsInstructions (both commands and queries) normally appear as a stringembedded in a statement of your host language, such as BASIC, Pascal,
Header TypesThere are three types of headers:•Simple Command headers•Compound Command headers•Common Command headersSimple Command Header Simple comma
Combining Commands from the Same SubsystemTo execute more than one function within the same subsystem a semicolon(;) is used to separate the functions
Query CommandCommand headers immediately followed by a question mark (?) are queries.After receiving a query, the instrument interrogates the requeste
Programmer’s GuidePublication Number 54645-97000June 1996 (pdf version Nov 1998)For Safety information, Warranties, and Regulatory information, see th
Program Header OptionsProgram headers can be sent using any combination of uppercase orlowercase ASCII characters. Instrument responses, however, are
Program Data Syntax RulesProgram data is used to convey a variety of types of parameter informationrelated to the command header. At least one space m
All numbers are expected to be strings of ASCII characters. Thus, whensending the number 9, you would send a byte representing the ASCII code forthe c
Program Message TerminatorThe program instructions within a data message are executed after theprogram message terminator is received. The terminator
2Programming Getting Started
Programming Getting Started This chapter explains how to set up the instrument, how to retrievesetup information and measurement results, how to digit
InitializationTo make sure the bus and all appropriate interfaces are in a known state,begin every program with an initialization statement. HP BASIC
AutoscaleThe AUTOSCALE feature performs a very useful function on unknownwaveforms by setting up the vertical channel, time base, and trigger level of
Example ProgramThis program demonstrates the basic command structure used to programthe oscilloscope.10 CLEAR 707 ! Initialize instrument interface20
Using the DIGitize CommandThe DIGitize command is a macro that captures data satisfying thespecifications set up by the ACQuire subsystem. When the di
Programming the OscilloscopeWhen you attach an interface module to the rear of the HP 54645 A/DOscilloscope, it becomes programmable. That is, you can
The following program example shows a typical setup:OUTPUT 707;":ACQUIRE:TYPE AVERAGE"<terminator>OUTPUT 707;":ACQUIRE:COMPLETE 1
Receiving Information from the InstrumentAfter receiving a query (command header followed by a question mark), theinstrument interrogates the requeste
String VariablesThe output of the instrument may be numeric or character data dependingon what is queried. Refer to the specific commands for the form
Numeric VariablesThe following example shows the data being returned to a numeric variable:10 OUTPUT 707;":ANALOG1:RANGE?"20 ENTER 707;Rang3
Definite-Length Block Response DataDefinite-length block response data allows any type of device-dependent datato be transmitted over the system inter
Multiple QueriesYou can send multiple queries to the instrument within a single programmessage, but you must also read them back within a single progr
3Programming over HP-IB
Programming over HP-IB This section describes the HP-IB interface functions and some generalconcepts. In general, these functions are defined by IEEE
Interface CapabilitiesThe interface capabilities of the oscilloscope, as defined by IEEE 488.1, areSH1, AH1, T5, L4, SR1, RL1, PP0, DC1, DT1, C0, and
AddressingBy using the front-panel menus, you must place the instrument in the“Connect to Computer” mode. Use the Print/Utility menu key on the frontp
CaptureOnce you initialize the oscilloscope, you can begin capturing data foranalysis. Remember that while the oscilloscope is responding tocommands f
Communicating Over the BusBecause HP-IB can address multiple devices through the same interface card,the device address passed with the program messag
LockoutYou can use the SYSTem:LOCK ON command to disable front-panel controlwhile a program is running. By default, the instrument accepts and execute
4Programming over RS-232-C
Programming over RS-232-CThis section describes the interface functions and some generalconcepts of the RS-232-C. The RS-232-C interface on this instr
Interface OperationThe oscilloscope can be programmed with a controller over RS-232-C usingeither a minimum three-wire or extended hardwire interface.
Minimum Three-Wire Interface with Software ProtocolWith a three-wire interface, the software (as compared to interfacehardware) controls the data flow
Extended Interface with Hardware HandshakeWith the extended interface, both the software and the hardware can controlthe data flow between the oscillo
The TD (Transmit Data) line from the oscilloscope must connect to the RD(Receive Data) line on the controller. Likewise, the RD line from theoscillosc
Configuring the InterfaceBy using the front-panel controls, you must place the RS-232-C interface ineither the printer mode or the controller mode. Us
Interface CapabilitiesThe baud rate, stop bits, parity, handshake protocol, and data bits must beconfigured exactly the same for both the controller a
In This BookThe HP 54645A/D Programmer’s Guide is your introduction toprogramming the HP 54645A Oscilloscope or HP 54645D Mixed-SignalOscilloscope usi
Data BitsData bits are the number of bits sent and received per character thatrepresent the binary code of that character. Information is stored in by
Lockout CommandTo lockout the front panel controls use the system command LOCK. Whenthis function is on, all controls (except the power switch) are en
5Programming and DocumentationConventions
Programming and DocumentationConventionsThis chapter covers conventions used in programming the instrument,as well as conventions used in the online H
Command Set OrganizationThe command set is divided into common commands, root level commandsand sets of subsystem commands. Each of the groups of comm
Table 5-1Alphabetic Command ReferenceCommand SubsystemWhere UsedCommand SubsystemWhere UsedCommand SubsystemWhere UsedACTivityADDRessADVancedAERALLAST
Command SubsystemWhere UsedCommand SubsystemWhere UsedCommand SubsystemWhere UsedPATTern2PEAKsPERiodPHASe#PIXel*PMCPMODePOINtsPOINtsPOLarityPOLarityPO
The Command TreeThe command tree shows all of the commands and the relationships of thecommands to each other. The IEEE 488.2 common commands are not
Programming and Documentation ConventionsThe Command Tree5-7
Subsystem CommandsSubsystem commands are grouped together under a common node of thecommand tree, such as the TIMEBASE commands. Only one subsystem ma
Programming Getting Started2Programming over HP-IB3Programming over RS-232-C4Programming andDocumentation Conventions5Status Reporting6Installing and
Example 2:OUTPUT 707;":TIMEBASE:REFERENCE CENTER ; DELAY 0.00001"orOUTPUT 707;":TIMEBASE:REFERENCE CENTER"OUTPUT 707;":TIMEBA
Truncation RulesThe truncation rule for the mnemonics used in headers and alpha argumentsis:The mnemonic is the first four characters of the keyword
Infinity RepresentationThe representation of infinity is 9.9E+37. This is also the value returnedwhen a measurement cannot be made.Sequential and Over
Notation Conventions and DefinitionsThe following conventions and definitions are used in this manual and theonline HP 54645A/D Oscilloscopes Programm
Program ExamplesThe program examples given for commands in the online HP 54645A/DOscilloscopes Programmer’s Reference were written using the HP BASIC5
6Status Reporting
Status Reporting Figure 6-1 is an overview of the oscilloscope’s status reportingstructure. The status reporting structure allows monitoring specifie
Status Reporting Overview Block DiagramThe status reporting structure consists of the registers in figure 6-1.Figure 6-1Status Reporting6-3
Table 6-1 is a list of the bit definitions for the bit in the status reporting datastructure.Table 6-1Status Reporting Bit DefinitionBit Description I
Status Reporting Data StructuresFigure 6-2 brings together the different status reporting data structuresmentioned in this chapter and shows how they
Status Reporting Data StructuresFigure 6-2Status ReportingStatus Reporting Data Structures6-6
Status Reporting Data StructuresFigure 6-2 (Continued)Status ReportingStatus Reporting Data Structures6-7
Status Reporting Data StructuresFigure 6-2 (Continued)Status ReportingStatus Reporting Data Structures6-8
Status Byte Register (SBR)The Status Byte Register is the summary-level register in the status reportingstructure. It contains summary bits that monit
Example The following example uses the *STB? query to read the contents of theoscilloscopes Status Byte Register when none of the register’s summary b
Service Request Enable Register (SRER)Setting the Service Request Enable Register bits enable corresponding bits inthe Status Byte Register. These ena
Standard Event Status Register (SESR)The Standard Event Status Register (SESR) monitors the followingoscilloscope status events:•PON - Power On•URQ -
Standard Event Status Enable Register (SESER)To make it possible for any of the Standard Event Status Register (SESR)bits to be able to generate a sum
User Event Register (UER)This register hosts the LCL bit (bit 0) from the Local Event Register. Theother 15 bits are reserved. You can read and clear
Contents1 Introduction to ProgrammingTalking to the Instrument 1–3Program Message Syntax 1–4Combining Commands from the Same Subsystem 1–7Duplicate
Limit Test Event Register (LTER)Bit 0 (COMP) of the Limit Test Event Register is set when the Limit Testcompletes. The Limit Test completion criteria
Mask Test Event Register (MTER)Bit 0 (COMP) of the Mask Test Event Register is set when the Mask Testcompletes. The Mask Test completion criteria are
Histogram Event Register (HER)Bit 0 (COMP) of the Histogram Event Register is set when the Histogramcompletes. The Histogram completion criteria are s
Error QueueAs errors are detected, they are placed in an error queue. This queue is firstin, first out. If the error queue overflows, the last error i
Output QueueThe output queue stores the oscilloscope-to-controller responses that aregenerated by certain instrument commands and queries. The output
Status Reporting Decision ChartFigure 6-3Status ReportingClearing Registers and Queues6-20
7Installing and Using theProgrammer’s Reference
Installing and Using the Programmer’sReferenceThe HP 54645A/D Oscilloscopes Programmer’s Reference is suppliedas an online help file readable with the
To install the help file under Microsoft WindowsThe help file requires Microsoft Windows 3.1 and MS-DOS 3.3 or greaterrunning on an IBM-compatible PC.
To get updated help and program files via the InternetThe latest versions of the help and example program files are available viaanonymous ftp. You mu
4 Programming over RS-232-CInterface Operation 4–3Cables 4–3Minimum Three-Wire Interface with Software Protocol 4–4Extended Interface with Hardware
To start the help file• To open the help file under Microsoft Windows, double-click the“Programmer’s Reference” icon in the “HP 54645A/D Oscilloscopes
7-6
8Programmer’s Quick Reference
IntroductionThe Programmer’s Quick Reference provides the commands andqueries with their corresponding arguments and returned formats forthe HP 54645A
ConventionsThe following conventions used in this guide include:< > Indicates that words or characters enclosed in angularbrackets symbolize a p
Commands and QueriesThe following tables facilitate easy access to each command and query forthe HP 54645A/D Oscilloscopes. The commands and queries a
Command Query Options and Query Returns:ASTore n/a n/a:AUToscale n/a n/a:BLANk <source>n/a <source> ::= {ANALog<n> | DIGital0,...,D
Command Query Options and Query Returns:DISPlay:PIXel <x>, <y>, <intensity>:DISPlay:PIXel? <x>,<y> <x> ::= x coord
Command Query Options and Query Returns:FUNCtion2:MOVE {LEFT)n/a n/a:FUNCtion<N>:OFFSet <offset>:FUNCtion<N>:OFFSet? <offset>
Command Query Options and Query Returnsn/a *IDN? HEWLETT-PACKARD,<model>, 0, X.X<model> ::= the model number of the instrument<X.X>
Komentáře k této Příručce