Tektronix AFG2021 Programmer's Manual

Type
Programmer's Manual
xx
AFG2021
Arbitrary Function Generator
ZZZ
Programmer Manual
*P077058701*
077-0587-01
AFG2021
Arbitrary Function Generator
ZZZ
Programmer Manual
xx
www.tektronix.com
077-0587-01
Copyright © Tektronix. All rights reserved. Licensed software products are owned by Tektronix or its subsidiaries
or suppliers, and are protected by national copyright laws and international treaty provisions.
Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication
supersedes that in all previously published material. Specications and price change privileges reserved.
TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
Contacting
Tektronix
Tektronix, Inc.
14150 SW Karl Braun Drive
P.O. Box 5 0
0
Beaverton, OR 97077
USA
For product information, sales, service, and technical support:
In North America, call 1-800-833-9200.
Worldwi
de, visit www.tektronix.com to nd contacts in your area.
Table of Contents
Preface .............................................................................................................. iii
Documentation................................................................................................ iii
Getting Started
Getting Started ..................... ........................ ........................ .............. ................. 1-1
Overview of the Manual .................................................................................... 1-1
Connecting the Interface .................................................................................... 1-2
Using the GPIB Port......................................................................................... 1-3
Setting
the GPIB Address................................................................................... 1-4
Using TekVISA .............................................................................................. 1-4
Syntax and Commands
Syntax and Commands........................................................................................... 2-1
Comma
nd Syntax................................................................................................. 2-2
Backus-Naur Form De nition ............. .......... .......... .......... ................................... 2-2
Command and Query Structure ............................................................................ 2-2
SCPI Commands and Queries.............................................................................. 2-4
IEEE 488.2 Common Commands.......................................................................... 2-9
Command Groups .............................................................................................. 2-11
Com
mand Descriptions ........................................................................................ 2-17
St
atus and Events
Status and Events ................................................................................................. 3-1
Status Reporting Structure.................................................................................. 3-1
R
egisters ...................................................................................................... 3-3
Queues ...................................................................................................... 3-10
Messages and Codes....................................................................................... 3-11
Programming Examples
Programming Examples ......................................................................................... 4-1
Appendices
Appendix A: SCPI Conformance Information ............................................................... A-1
AFG2021 Arbitrary Function Generator Programmer Manual i
Table of Contents
ii AFG2021 Arbitrary Function Generator Programmer Manual
Preface
This manual provides operating information for the AFG2021 Arbitrary Function
Generator.
The manual consists of the following sections:
Getting Started covers operating principles of the instrument, which helps you
understand how your generator operates.
Syntax and Commands denes the command syntax and processing
conventions, describes command notation.
Status and Events explains the status information and event messages reported
by the instrument.
Programming Examples contains remote interface application programs to
help you develop programs for your application.
Appendix A: SCPI Conformance Information contains a list of c ommands
and SCPI information.
Docum
entation
In addition to this AFG2021 Arbitrary Function Generator Programmer Manual,
the following documentation is available for this instrument:
AFG2021 Arbitrary Function Generator Quick Start User Manual. The quick start
user manual provides information on installation, general features, operating the
instrument, and user interface.
BuiltinHelpSystem. The built-in help system that is integrated with the User
In
terface application that ships with this instrument.
AFG2021 Arbitrary Function Generator Specications and Performance Verication
Technical Reference. The technical reference provides information on instrument
specications and procedures for performance verication.
AFG2021 Arbitrary Function Generator Service Manual. The service manual
includes procedures to service the instrument to the module level. The manual
also includes adjustment procedures, theory of operation information, and a list of
replaceable parts.
AFG2021 Arbitrary Function G en erator Programmer Manual iii
Preface
iv AFG2021 Arbitrary Function Generator Programmer Manual
Getting Started
Getting Started
To help you get started with programming the instrument, this section includes the
following subsections
Overview of the Manual
Summarizes each major section of this manual.
Connecting the Interface
Describes how to physically connect the instrument to a controller.
Using GPIB Port
Describes how to u se the GPIB port.
Setting the GPIB Address
Describes how to set the GPIB parameters from the front panel.
Using TekVISA
Describes how to use the TekVISA communication protocol.
Overview of the Manual
The information contained in each major section of this manual is described below.
Synta
x and Commands
Syntax and Commands, describes the structure and content of the messages your
program sends to the instrument. The following gure shows command parts as
described in the Command Syntax subsection.
Figure 1-1: Command parts
Section 2 also describes the effect of each command and provide s examples
o
f how you might use it. The Command Groups subsection provides lists by
functional areas. The commands are listed alphabetically in the Command
Descriptions section.
AFG2021 Arbitrary Function Generator Programmer Manual 1-1
Getting Started
Figure 1-2: Functional groupings and an alphabetical list of commands
Status an
d Events
The p rogram may request information from the instrument. The instrument
provides information in the form of status and error messages. The following
gure illustrates the basic operation o f this system. Section 3, Status and Events,
describ
es how to get status or event information from the program and details
the event and error messages.
Figure 1-3: Event-driven program
Connecting the Interface
The AFG2021 with Option GL has a 24-pin GPIB connector on its rear panel, as
shown in the following gure. (The AFG2021 base model provides a USB port
only.) This connector has a D-type shell and conforms to IEEE Std 488.1-1987.
Attach an IEEE Std 488.1-1987 GPIB cable (Tektronix part number 012-0991-00)
t
o this connector.
1-2 AFG2021 Arbitrary Function Generator Programmer Manual
Getting S tarted
Figure 1-4: GPIB connector (rear panel with Option GL only )
Using th
eGPIBPort
The instrument has Talker/Listener functions through which it can communicate
with other devices, as well as the external controller, located on the bus.
Figure 1-5: GPIB connection
AFG2021 Arbitrary Function Generator Programmer Manual 1-3
Getting Started
GPIB Requirements
Observe the fol
lowing rules when you use your instrument with a GPIB network
Assign a unique device address to e ach device on the bus. No two devices
can share the same device address.
Do not c onnect more than 15 devices to any one bus.
Connect one device for every 2 m (6 ft) of cable used.
Do not use more than 20 m (65 ft) of cable to connect devices to a bus.
Turn on at least 2/3 of the devices on the network while using the network.
Connect the devices on the network in a star or linear conguration, as shown
in the following gure. Do not use loop or parallel congurations.
Figure 1-6: Typical GPIB network congurations
Setting the GPIB Address
When you use the GPIB port to communicate with an external controller, follow
these steps to set the address of the instrument.
1. Press the Utility button.
2. Press the I/O Interface button.
3. Press the GPIB button.
4. Press the Address button.
5. Turn the general purpose knob to set the GPIB Address.
6. Press the Return to up menu button when you have set the GPIB address to
save the setting.
NOTE. The GPIB address cannot be initialized by the *RST command.
Using TekVISA
TekVISA is Tektronix implementation of VISA (Virtual Instrument Software
Architecture), an industry-standard communication protocol. VISA provides
1-4 AFG2021 Arbitrary Function Generator Programmer Manual
Getting S tarted
a common standa
rd for software developers so that software from multiple
vendors, such as instrument drivers, can run on the same platform. TekVISA
is industry-compliant software, available with selected Tektronix instruments.
You can use this software to write (or draw) interoperable instrument drivers in
a variety of Application Development Environments (ADEs). It implements
a subset of Version 2.2 of the VISA specication for controlling GPIB and
serial (RS-
232) instrument interfaces locally or remotely via an Ethernet L AN
connection.
Installation
Use an internet browser to access the Tektronix Web site (www.tektronix.com)
and downl
oad the current TekVISA to your PC. Unzip the downloaded le in a
temporary directory of your choice and run Setup.exe.
NOTE. The details on TekVISA concepts and operations are explained in the
TekVISA Programmer Manual that can be also found on the Tektronix Web site.
AFG2021 Arbitrary Function Generator Programmer Manual 1-5
Getting Started
1-6 AFG2021 Arbitrary Function Generator Programmer Manual
Syntax and Commands
Syntax and Commands
This section provides the following information:
CommandSyntaxdenes the command syntax and processing conventions.
Command Groups describes command groups which lists the commands
by function.
Command Descriptions describes the notation of each of the commands in
alphabetical order.
AFG2021 Arbitrary Function Generator Programmer Manual 2-1
Command Syntax
Command S ynta
x
You can contr
ol the operations and functions of the instrument through the
GPIB interface using c ommands and queries. The related topics listed below
describe the syntax of these commands and queries. The topics also describe the
conventions that the i nstrument uses t o process them. See Command Groups
(See page 2-11.)for a listing of the commands by command group, or use the
index to locate a specic command.
Backus-Naur Form Denition
This manual may describe commands and queries using the Backus-Naur Form
(BNF) notation. The following table de nes the standard BNF symbols.
Table 2-1: BNF symbols and meanings
Symbol
Meaning
<>
Dened element
:=
Is dened as
| Exclusive OR
{ } Group; one element is required
[]
Optional; can be omitted
.. .
Previous element(s) may be repeated
( ) Comment
Command and Query Structure
Commands consist of set commands and query commands (usually simply called
commands and queries). Commands change instrument settings or perform a
specic action. Queries cause the instrumenttoreturndataandinformationabout
its status.
Most commands have b oth a set form and a query form. The query form of
the command is the same as the set form except that it ends with a question
mark. For example, the set command
DISPlay:BRIGhtness has a query form
DISPlay:BRIGhtness?. Not all commands have both a set and a query form;
some commands are set only and some are query only.
A few commands do both a set and query action. For example, the
*CAL?
command runs a self-calibration program on the instrument, then returns the
result of the calibration.
A command message is a command or query name, followed by any information
the instrument needs to execute the command or query. Command messages
consist of ve element types.
2-2 AFG2021 Arbitrary Function Generator Programmer Manual
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153

Tektronix AFG2021 Programmer's Manual

Type
Programmer's Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI