This programmer’s guide contains general
information, instrument level commands,
logic analyzer commands, oscilloscope
module commands, pattern generator
module commands, and programming
examples for programming the Agilent
Technologies 1670G-series logic
analyzers. This guide focuses on how to
program the instrument over the GPIB
and the RS-232-C interfaces. For
information on using Ethernet refer to
the LAN section of your User’s Guide.
Instruments covered by the Agilent
Technologies 1670G-Series
Programmer’s Guide
The Agilent 1670G-series logic analyzers
are available with or without oscilloscope
measurement capabilities and pattern
generator capabilities. The Agilent
1670G-series logic analyzer has a hard
disk drive and optional Ethernet
capability.
What is in the Agilent Technologies
1670G-Series Programmer’s Guide?
The Agilent Technologies 1670G-Series
Programmer’s Guide is organized in six
parts.
10
11
12
13
2
3
4
5
6
7
8
9
Programming Over GPIB
Programming Over RS-232-C
Programming and
Documentation Conventions
Message Communication
and System Functions
Status Reporting
Error Messages
Common Commands
Instrument Commands
Module Level Commands
SYSTem Subsystem
MMEMory Subsystem
MACHine Subsystem
14
15
WLISt Subsystem
SFORmat Subsystem
iii
Part 1 Part 1, consists of chapters 1 through 7 and contains general
information about programming basics, GPIB and RS-232-C interface
requirements, documentation conventions, status reporting, and error
messages.
If you are already familiar with IEEE 488.2 programming and GPIB or
RS-232-C, you may want to just scan these chapters. If you are new to
programming the system, you should read part 1.
Chapter 1 is divided into two sections. The first section, "Talking to the
Instrument," concentrates on program syntax, and the second section,
"Receiving Information from the Instrument," discusses how to send queries
and how to retrieve query results from the instrument.
Read either chapter 2, "Programming Over GPIB," or chapter 3,
"Programming Over RS-232-C" for information concerning the physical
connection between the Agilent Technologies 1670G-series logic analyzer
and your controller.
Chapter 4, "Programming and Documentation Conventions," gives an
overview of all instructions and also explains the notation conventions used
in the syntax definitions and examples.
Chapter 5, "Message Communication and System Functions," provides an
overview of the operation of instruments that operate in compliance with the
IEEE 488.2 standard.
Chapter 6 explains status reporting and how it can be used to monitor the
flow of your programs and measurement process.
Chapter 7 contains error message descriptions.
Part 2 Part 2, chapters 8 through 13, explains each command in the
command set for the entire logic analyzer. These chapters are organized
in subsystems with each subsystem representing a front-panel menu.
The commands explained in this part give you access to common commands,
instrument commands, system level commands, disk commands,
intermodule measurement, and module level commands. This part is
designed to provide a concise description of each command.
Part 3 Part 3, chapters 14 through 27, explains each command in the
subsystem command set for the logic analyzer. Chapter 27 contains
information on the SYSTem:DATA and SYSTem:SETup commands for
the logic analyzer.
iv
STRigger (STRace) Subsystem
16
The commands explained in this part give
you access to all the commands used to
operate the logic analyzer portion of the
Agilent 1670-series system. This part is
designed to provide a concise description
of each command.
Part 4 Part 4, chapters 28 through 36
explain each command in the subsystem
command set for the oscilloscope. The
information covered in Part 4 is only
relevant to models containing an
oscilloscope.
The commands explained in this part give
you access to all the commands used to
operate the oscilloscope. This part is
designed to provide a concise description
of each command.
Part 5 Part 5, chapters 37 through 42
explain each command in the subsystem
command set for the pattern generator.
The information covered in Part 5 is only
relevant to models containing a pattern
generator.
The commands explained in this part give
you access to all the commands used to
operate the pattern generator portion of
the Agilent 1670G-series system. This
part is designed to provide a concise
description of each command.
17
18
19
20
21
22
23
24
25
26
27
SLISt Subsystem
SWAVeform Subsystem
SCHart Subsystem
COMPare Subsystem
TFORmat Subsystem
TTRIGger {TTRACe} Subsystem
TWAVeform Subsystem
TLISt Subsystem
SPA Subsystem
SYMBol Commands
DATA and SETup Commands
28
29
30
Oscilloscope Root Level
Commands
ACQuire Subsystem
CHANnel Subsystem
v
Part 6 Part 6, chapter 43, contains program examples of actual tasks
that show you how to get started in programming the Agilent
1670G-series logic analyzers. The complexity of your programs and the
tasks they accomplish are limited only by your imagination. These
examples are written in HP Basic 6.2; however, the program concepts
can be used in any other popular programming language that allows
communications over GPIB or RS-232 buses.
vi
31
DISPlay Subsystem
32
33
34
35
36
37
38
39
40
MARKer Subsystem
MEASure Subsystem
TIMebase Subsystem
TRIGger Subsystem
WAVeform Subsystems
Programming the Pattern
Generator
FORMat Subsystem
SEQuence Subsystem
MACRo Subsystem
41
42
43
SYMBol Subsystem
DATA and SETup Commands
Programming Examples
Index
vii
viii
Table of Contents
Part 1 General Information
1 Introduction to Programming the Agilent Technologies 1670G-
Response Header Options 1–16
Response Data Formats 1–17
String Variables 1–18
Numeric Base 1–19
Numeric Variables 1–19
Definite-Length Block Response Data 1–20
Multiple Queries 1–21
Instrument Status 1–22
2 Programming Over GPIB
Interface Capabilities 2–3
Command and Data Concepts 2–3
Addressing 2–3
Communicating Over the GPIB Bus (HP 9000 Series 200/300 Controller) 2–4
Local, Remote, and Local Lockout 2–5
Contents–1
Contents
Bus Commands 2–6
3 Programming Over RS-232-C
Interface Operation 3–3
RS-232-C Cables 3–3
Minimum Three-Wire Interface with Software Protocol 3–4
Extended Interface with Hardware Handshake 3–4
Cable Examples 3–6
Configuring the Logic Analyzer Interface 3–8
Interface Capabilities 3–9
RS-232-C Bus Addressing 3–10
Lockout Command 3–11
4 Programming and Documentation Conventions
Truncation Rule 4–3
Infinity Representation 4–4
Sequential and Overlapped Commands 4–4
Response Generation 4–4
Syntax Diagrams 4–4
Notation Conventions and Definitions 4–5
The Command Tree 4–5
Tree Traversal Rules 4–6
Command Set Organization 4–12
Subsystems 4–12
Program Examples 4–13
SYMBol 26–5
BASE 26–5
PATTern 26–6
RANGe 26–7
REMove 26–8
WIDTh 26–8
27 DATA and SETup Commands
Introduction 27–2
Data Format 27–3
SYSTem:DATA 27–4
Section Header Description 27–6
Section Data 27–6
Data Preamble Description 27–6
Acquisition Data Description 27–10
Tag Data Description 27–12
SYSTem:SETup 27–12
COLumn 39–4
EPATtern 39–5
INSert 39–7
PROGram 39–10
REMove 39–14
40 MACRo Subsystem
MACRo Subsystem 40–2
INSert 40–5
NAME 40–8
PARameter 40–9
PROGram 40–10
REMove 40–13
Contents–15
Contents
41 SYMBol Subsystem
SYMBol Subsystem 41–2
BASE 41–4
PATTern 41–5
RANGe 41–6
REMove 41–7
WIDTh 41–8
42 DATA and SETup Commands
Data and Setup Commands 42–2
SYSTem:DATA 42–4
SYSTem:SETup 42–5
Part 6 Programming Examples
43 Programming Examples
Making a Timing Analyzer Measurement 43–3
Making a State Analyzer Measurement 43–5
Making a State Compare Measurement 43–9
Transferring the Logic Analyzer Configuration 43–14
Checking for Measurement Completion 43–17
Sending Queries to the Logic Analyzer 43–18
Contents–16
Part 1
General Information
1
Introduction to Programming
the Agilent Technologies
1670G-Series Logic Analyzer
Introduction
This chapter introduces you to the basics of remote programming and
is organized in two sections. The first section, "Talking to the
Instrument," concentrates on initializing the bus, program syntax and
the elements of a syntax instruction. The second section, "Receiving
Information from the Instrument," discusses how queries are sent and
how to retrieve query results from the mainframe instruments.
The programming instructions explained in this book conform to
IEEE Std 488.2-1987, "IEEE Standard Codes, Formats, Protocols, and
Common Commands." These programming instructions provide a
means of remotely controlling the Agilent Technologies 1670G-series
logic analyzer. There are three general categories of use. You can:
• Set up the instrument and start measurements.
• Retrieve setup information and measurement results.
• Send measurement data to the instrument.
The instructions listed in this manual give you access to the
measurements and front panel features of the Agilent
Technologies 1670G-series logic analyzer. The complexity of your
programs and the tasks they accomplish are limited only by your
imagination. This programming reference is designed to provide a
concise description of each instruction.
1–2
Talking to the Instrument
In general, computers acting as controllers communicate with the
instrument by sending and receiving messages over a remote
interface, such as GPIB or RS-232-C. Instructions for programming
the Agilent Technologies 1670G-series logic analyzer will normally
appear as ASCII character strings embedded inside the output
statements of a "host" language available on your controller. The host
language’s input statements are used to read in responses from the
Agilent Technologies 1670G-series logic analyzer.
For example, HP 9000 Series 200/300 BASIC (Y2K updates for
currently supported versions of HP BASIC can be found at
http://hp.iwcon.com/tm-y2k/cgi-bin/tm_search.pl) uses the OUTPUT
statement for sending commands and queries to the Agilent
Technologies 1670G-series logic analyzer. After a query is sent, the
response can be read in using the ENTER statement. All
programming examples in this manual are presented in HP BASIC.
ExampleThis BASIC statement sends a command that causes the logic analyzer’s
machine 1 to be a state analyzer:
OUTPUT XXX;":MACHINE1:TYPE STATE" <terminator>
Each part of the above statement is explained in this section.
1–3
Introduction to Programming the Agilent Technologies 1670G-Series Logic Analyzer
Initialization
Initialization
To make sure the bus and all appropriate interfaces are in a known state,
begin every program with an initialization statement. BASIC provides a
CLEAR command that clears the interface buffer. If you are using GPIB,
CLEAR will also reset the parser in the logic analyzer. The parser is the
program resident in the logic analyzer that reads the instructions you send to
it from the controller.
After clearing the interface, you could preset the logic analyzer to a known
state by loading a predefined configuration file from the disk.
Refer to your controller manual and programming language reference manual
for information on initializing the interface.
ExampleThis BASIC statement would load the configuration file "DEFAULT " (if it
exists) into the logic analyzer.
OUTPUT XXX;":MMEMORY:LOAD:CONFIG ’DEFAULT ’"
Refer to chapter 12, "MMEMory Subsystem" for more information on the
LOAD command.
Example This program demonstrates the basic command structure used to program
the Agilent Technologies 1670G-series logic analyzers.
10 CLEAR XXX !Initialize instrument interface
20 OUTPUT XXX;":SYSTEM:HEADER ON"!Turn headers on
30 OUTPUT XXX;":SYSTEM:LONGFORM ON"!Turn longform on
40 OUTPUT XXX;":MMEM:LOAD:CONFIG ’TEST E’"!Load configuration file
50 OUTPUT XXX;":MENU FORMAT,1"!Select Format menu for machine 1
60 OUTPUT XXX;":RMODE SINGLE"!Select run mode
70 OUTPUT XXX;":START"!Run the measurement
1–4
Loading...
+ 596 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.