The WILTRON product(s) listed on the title page is (are) warranted against defects in materials
and workmanship for one year from the date of shipment, except for YIG-tuned oscillators and all
microwave components, which are warranted for two years.
WILTRON’s obligation covers repairing or replacing products which prove to be defective during
the warranty period. Buyers shall prepay transportation charges for equipment returned to WILTRON for warranty repairs. Obligation is limited to the original purchaser. WILTRON is not liable
for consequential damages.
LIMITATION OF WARRANTY
The foregoing warranty does not apply to WILTRON connectors that have failed due to normal
wear. Also, the warranty does not apply to defects resulting from improper or inadequate maintenance by the Buyer, unauth or ized modification or misuse, or oper ation outside of the environmen tal
specification s of the produc t. No other warran ty i s expressed or implied, an d the remedies pr ovided
herein are the Buyer’s sole and exclusive remedies.
Page 3
TABLE OF CONTENTS
Chapter 1 — General GPIB Information
Chapter 1 provides a general description of the General Purpose Interface Bus (GPIB) and the bus
data transfer and control functions. It also contains a listing of the 681XXA’s GPIB interface function subset capability and response to IEEE-488 interface function messages. Chapter contents are
detailed immediately following the tab.
Chapter 2 — Programming with SCPI Co mmands
Chapter 2 provides information for remote operation of the sweep generator via the GPIB using
Standard Commands for Programmable Instruments (SCPI) commands. All SCPI commands are
listed and described by subsystem. Sample programs showing usage of the commands are also included. Chapter contents are detailed immediately following the tab.
Chapter 3 — Programmi ng with Compatible 67XX GPIB Comman ds
Chapter 3 provides information for remote operation of the sweep generator via the GPIB using
compatible WILTRON Model 67XX Synthesizer GPIB commands. All 67XX GPIB commands ac-
cepted and implemented by the 681XXA are listed and described by function. Sample programs
showing usage of the commands are also included. Chapter contents are detailed immediately following the tab.
Appendix A — SCPI Conformance Information
Appendix A provides SCPI conformance information in the form of a command summary.
Appendix B — Index of Compatible 67XX GPIB Commands
Appendix B provides an alphabetical index of the WILTRON Model 67XX GPIB Product Specific
Commands accepted and implemented by the 681XXA.
Response to GPIB Interface Function Messages . 1-13
Page 5
Chapter 1
General GPIB Information
1-1
1-2
SCOPE OF MANUAL
INTRODUCTI ON
This manual prov ide s infor mation for oper atin g the Ser ies 681X XA
Synthesized Sweep G en era tor with command s sen t from an exter nal
controller via the IEEE-488 Gener al Purpose In ter fac e Bus (GP IB). It
includes the following:
A gene ral desc r iption of the GPIB and the bus data tran sfer and
control func tion s.
A complete l isting and desc rip tion of all the Standard Comman ds
for Programmable Instrument s (SCPI) commands used to control
sweep generator operation with programming examples.
A complete l isting and desc rip tion of all compa tible WILT RON
67XX Synthesizer GPIB co mmand s that can be used to contr ol
sweep generator operation with programming examples.
This manual i s intend ed to be use d in conju n ction with the Series
681XXA Synthesized Sweep Generator Op era tion Manual, P/N 10370-
10250. Refer to that manual for general information about the
681XXA, including equipment set up and front panel (manual mode)
operating instr uc tion s.
This chapter prov ides a gener al descr iption of the GPIB and the bus
data transfer and control functions. It also contains a listing of the
681XXA’ s GPI B inter fac e func tion subset capability an d respo nse to
IEEE-488 interface function messages.
The GPIB information presen ted in this chapte r is general in natu r e.
For complete and specific information, refer to the following documents: ANSI/IEEE Std 488.1-1987 IEEE Standard Digital Interface
for Programmable Instrumentation and ANSI/I EEE S td 488.2- 1987
IEEE Standar d Code s, For mats , Prot ocols an d Common Comman ds.
These documen ts prec isely defin e the total specification of the mechanical an d elec tric al inter fac e, and of the data tran sfer and co ntr ol
protocols.
681XXA PMPRELIMINARY1-3
Page 6
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
IEEE-488 BUS (16 Lines)
DEVICE A
Able to talk, listen,
and control
(e.g. COMPUTER)
DEVICE B
Able to talk and listen
(e.g. 681XXA
SWEEP
GENERATOR)
DEVICE C
Data Bus
(8 signal lines)
Data Byte Transfer
Control Bus
(3 signal lines)
DATA LINES
HANDSHAKE Lines
Only able to listen
(e.g. OTHER
INSTRUMENT**)
DEVICE D
Only able to talk
(e.g. OTHER
INSTRUMENT**)
General Interface
Management Bus
(5 signal lines)
DATA INPUT/OUTPUT,
DIO 1 thru DIO 8
DAV - DATA VALID
NRFD - NOT READY FOR DATA*
NDAC - NOT DATA ACCEPTED*
IFC - INTERFACE CLEAR
ATN - ATTENTION
SRQ - SERVICE REQUEST
REN - REMOTE ENABLE
EOI - END OR IDENTIFY
* NEGATION IS REPRESENTED BY
LOW STATE ON THESE TWO LINES
** IF USED
Figure 1-1. Interface Connections and GPIB Bus Structur e
Management
CONTROL Lines
1-4PRELIMINARY681XXA PM
Page 7
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
1-3
IEEE-488 INTERFACE
BUS DESCRIPTION
The IEEE-488 Gener al Purpo se Interfac e Bus (G PIB) is an instrumen tation interface for integrating instruments, computers, printers, plotters, and other measur eme nt dev ic es in to sys tems. The GPIB uses 16
signal lines to effect transfer of inf orm ation betw een all devic es con nected on the bus.
The following re quirements and restrictions apply to the GPIB.
No more than 15 devices can be inter con ne cted by one contiguous
bus; however, an instru men tation system may contain more than
one interface bus.
The maximum total cumu l ative cable length for one inter fac e
bus may not exceed twice the number of devices connected (in meters) , or 20 meters—whichev er i s less.
A maximu m data rate of 1 Mb/s across the inter fac e on any signal line.
Each device on the interface bus mus t have a unique addr ess,
ranging from 00 to 30.
The devices on the GPIB are co nnec ted in parallel, as shown in Figur e
1-1. The interface consists of 16 signal lines and 8 ground lines in a
shielded cable. Eight of the signal lines are the data lines, DIO 1 thru
DIO 8. These data lines carry messages (data and comman ds), one
byte at a time, among the GPIB devic es. Th ree of the re mainin g line s
are the handshake line s that control the transfer of message bytes between devices. The five remaining sign al line s are refer re d to as interface management lines.
The follow ing par agr aph s p rovide an overview of the GPIB in clu din g a
description of the function al elemen ts, bus str u ctu re, bu s data transfer process, in terf ace manag emen t bus, dev ic e inter face function requiremen ts, and message types.
681XXA PMPRELIMINARY1-5
Page 8
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
Functional
Elements
Effective commun ication s betwee n devic es on the
GPIB requires three functional elements; a talker, alistener, and a controller. Each device on the GPIB
is categorized as one of these elements depending
on its current interface function and capabilities.
Talker
A talker is a device capable of sending devic e-de penden t data to another device on the bus when addressed to talk. Only one GPIB device at a time can
be an active talker.
Listener
A l i stener i s a device capable of r ec eiv ing dev ice-dependent data from anoth er device on the bus when
addres sed to listen . An y nu mber of GPIB devices
can be listeners simultaneously.
Controller
A co ntr oller is a device, usually a compute r, capable
of managin g the oper a tion of the GPIB. Only one
GPIB device at a time can be an active contro ller.
The active controller manages the transfer of devicedepende nt data betw een GPIB devices by desig n a ting who will talk and who will listen.
System Control ler
The system controlle r is the device tha t always retains ultimate control of the GPIB. When the system is first powered-up, the system controller is the
active controller and manages the GPIB. The system controller can pass contro l to a device, makin g
it the new active controller. The new activ e contr oller , in turn, may pass control on to yet another device. Even if it is not the active controller, the
system contro ller maintains co ntr ol of the Inter fac e
Clear (IFC) and Remote Enable (REN) inter fac e
managemen t lines and can thus tak e control of the
GPIB at anytime.
1-6PRELIMINARY681XXA PM
Page 9
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
Bus
Structure
The GPIB uses 16 signal lines to carry data and
commands between the device s conne cted to the
bus. The interfac e sign al line s are orga n ized in to
three function al gr ou ps.
Data Bus (8 lines)
Data Byte Transfer Control Bus (3 lines)
General In terf ace Management Bus (5 line s)
The signal lines in each of the thr ee grou ps are designated accordin g to function . Table 1-1 lists these
designation s.
Table 1-1. Interface Bus Signal Line Designations
DAV
NRFD
NDAC
ATN
IFC
SRQ
REN
EOI
Signal Lin e
Name
Function
Data Ava ilable
Not Ready For Da ta
Not Data Acc epted
Attenti on
Interface Clear
Service Request
Remot e E nable
End Or Identify
Bus T y pe
Data BusDIO1–DIO 8Data Input/Out pu t, 1 thru 8
Data Byte
Tra nsfer
Control Bus
Genera l
Interface
Management
Bus
Data Bus Description
The data bus is the conduit for the transfer of data
and commands between the devic es on the GPIB. It
contains eigh t bi-dir ec tion al, active-low signal lin e s
—DIO 1 thru DIO 8. Data and commands are trans ferred over the data bus in byte-ser ial, b it-par allel
form. This means tha t one byte of data (eight bits)
is transferred ov er the bus at a time. DIO 1 represents the least-signific ant b it (LSB) in this byte and
DIO 8 represen ts th e mo st-sig n ific ant b it (MSB).
Bytes of data are normally formatted in seven-bit
ASCII (American Standar d Code for Inf orm ation Interchang e) code. The eigh th (parity ) bi t is not used.
Each byte placed on the data bus repr esen t s either
a command or a data byte. If the Attention (ATN) interface manage men t line is TRUE while the data is
transfer red, the n the data bus is carry in g a bus command whic h is to be receiv ed by ev er y GPIB devic e.
If A T N is FALSE, then a data byte is being tran sferred and only the active listeners will receive that
byte.
681XXA PMPRELIMINARY1-7
Page 10
GENERAL GPIBIEEE-488 INTERFACE
1st Data Byte2nd Data Byte
Valid
Not
Valid
Valid
Not
Valid
All
Ready
None
Ready
All
Ready
None
Ready
All
Accept
None
Accept
None
Accept
All
Accept
DIO1-DIO8
(composite)
DAV
NRFD
NDAC
INFORMATIONBUS DESCRIPTION
Figure 1-2. Typical GPIB Handshake Op eratio n
Data Byte
Transfer
Control Bus
Description
Control of the tran sfer of eac h by te of data on the
data bus is accomplished by a techn ique called the
“three-wire handshake”, which involv es the thr ee
signal lines of the Data Byte Transfer Contr ol Bus.
This technique forces data transfers at the spe ed of
the slowest listener, which ensures data integrity in
multiple listener transfers. O ne line (DAV) is controlled by the talker, while the other two (NRFD
and NDAC) are wire d-O R lines sh ar ed by all active
listeners. The handsh ake lin es, like the other GPIB
lines, are active low. The techniqu e i s described
briefly in the follow in g par ag rap hs and is depicted
in Figure 1-2. For fur ther inf or ma tion, refer to
ANSI/IEEE Std 488.1.
DAV (Data Valid)
This line is controlled by the active talker. Before
sending any da ta, the talker verifie s that NDAC is
TRUE (active low) which ind icates that all listeners
have accepte d the prev iou s data byte. The talker
then places a byte on the data lines and waits un ti l
NRFD is F ALSE (high ) which indicates that all addressed listener s are read y to accept the infor m ation. When both NRFD and ND AC are in the prop er
state, the talker sets the DAV line TRUE (active
low) to indicate that the data on the bus is valid
(stable).
NRFD (Not Ready For Data)
This line is used by the listeners to infor m the
talker when they are ready to accept new data. The
talker must wait for each listener to set the NRFD
line FALSE (high) which they will do at their own
1-8PRELIMINARY681XXA PM
Page 11
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
rate. This assures that all devices that are to accept
the data are ready to receive it.
NDAC (Not Data Accepted)
This line is also controlled by the listeners and is
used to inform the talke r that each devic e a ddressed to listen has accep te d the data. Each devic e
releases NDAC at its own rate, but NDAC will not
go FALSE (high) until the slowest listener has accepted the data byte.
General
Interface
Management
Bus
Description
The general inter fac e manag eme nt bus is a group of
five signal lin es used to manag e the flow of info rmation across the GPIB. A description of the function
of each of the indiv idu al con tro l lines is prov ided below.
ATN (Attention)
The activ e co ntroller uses the ATN line to define
whether the information on the data bus is a command or is data. When ATN is TRUE (low), the bus
is in the command mode and the data lines carr y
bus commands. Wh en ATN is FALSE (high), the bus
is in the data mode and the data lines carry devic edepende nt instr uction s or data.
EOI (End or Identify)
The EOI line is used to indicate the last byte of a
multibyte data transfer. The talker sets the EOI
line TRUE during the last data byte.
The active contro ller also uses the EOI line in conjunction w ith the ATN line to initiate a parallel poll
sequence.
IFC (Interface Clear)
Only the system controller uses this line. When IFC
is TRUE (low), all devices on the bus are placed in a
known, quiescen t state (unaddressed to talk, unaddressed to listen, and se rvic e re que st idle).
REN (Remote Enab le)
Only the system controller uses this line. When
REN is set TRUE (low), the bus is in the remote
mode and devices are addre ssed either to listen or
to talk. When the bus is in remote and a device is
addres sed, it receiv es instru c tion s from the GPIB
rather than from its front panel. When REN is set
FALSE (high) , the bus and all devic es return to local operation.
681XXA PMPRELIMINARY1-9
Page 12
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
SRQ (Service Request)
The SRQ line is set TRUE (low) by any device r equesting service by the activ e contr oller.
Device
Interface
Function
Capability
An interfac e fu n ction is the GPIB system element
which provides the basic operation al fac ility
through which a device can receive, process, and
send messages. Each specif ic interf ace function may
only send or receive a limited set of messages
within partic ular cl asses of messages. As a re sult, a
set of interface fun ction s is necessar y to achiev e
complete commun ic atio ns amon g devic es on the
GPIB. ANSI/IEEE Std 488.1 d efin es eac h of th e
interface functions along with its specific protocol.
ANSI/IEEE Std 488.2 specifies the minimum set of
IEEE 488.1 interface capabilities that each GPIB device must have. This minimu m set of interfac e fun ctions assures that the device is able to send and
receive data, r equ es t service, and r epon d to a devic e
clear message. Table 1-2 lists the interface function
capability of the series 681XXA sweep generator.
T abl e 1-2. 681XXA Inter face Function Capab il ity
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
Message
Types
There are three types of information transmitted
over the GPIB—inte rface func tion messages, device specific comman ds, and data and instrumen t status
messages.
Interface Fun cti o n Mess ages
The controller manages the flow of information on
the GPIB using interface func tion messages, usually called comma nds or command messages. Inter-
face function messages perfo rm such function s as
initializing the bus, addressing and unaddr essing
devices, and setting device modes for remote or local
operation .
There are two types of commands—mu ltilin e and
uniline. Multilin e command s are bytes sent by the
active contr oller over the data bus (DIO 1-D IO 8)
with A TN set TRUE. Un ilin e c omman ds ar e sign al s
carried by the indiv idu al inter fac e manag eme nt
lines.
The user generally has control over these commands; however , the extent of user control depends
on the implementation and varies with the specific
GPIB interfac e har dw ar e and software used with
the external contr oller.
Device-Speci fic Comma nd s
These commands are ke ywor ds or mnemon ic cod es
sent by the external con trolle r to contr ol the setup
and operation of the addr essed dev ic e or ins trument. The commands are normally uniqu e to a particular in strument or class of instrument s and are
described in its documentation.
Device-specific commands are transmitted over the
data bus of the GPIB to the device in the form of
ASCII strings containing one or more keywords or
codes.They are decoded by the device’s internal con-troller and cause the various instr u men t function s
to be performed .
Data and Instrument Status Messages
These messages are sent by the device to the exte rnal controller via the GPIB. They con tain measur ement results, instrume nt status, or data files that
the device tran smits over the data bus in respon se
to specific requests from the extern al con tro ller. The
content s of these messages are instr ume nt spec ific
and may be in the form of ASCII string s or binar y
data.
681XXA PMPRELIMINARY1-11
Page 14
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
In some cases data messages will be transmitted
from the external controller to the device. For example, messages to load calibration data.
An SRQ (service r equest) is an interface fun ction
message sent from the device to the external controller to request service fro m the contr oller, usually
due to some predetermin ed statu s condition or error. To send this message, the device sets the SRQ
line of the General Interface Manageme nt Bus true,
then sends a status byte on the data bus lines.
An SRQ interface fun ction message is also sent by
the device in resp onse to a serial poll message from
the controller, or upon rec eiv ing an Outpu t Status
Byte(s) command fro m the contr oller. The protoco l s
associated with the SRQ function s are defin ed in
the ANSI/IEEE Std 488.2 docu men t.
The manner in whic h interface func tion messages
and device-spe cif ic comman ds are invok ed in programs is implementation specific for the GPIB interface used with the exte rnal co ntr oller. Even though
both message types are represented by mne mon ics,
they are implemented and used in different ways.
Normally, the interface function messages are sent
automatically by the GPIB driver softwar e in response to invoc ation of a software fu nction . For example, to send the IFC (Interface Clear ) interface
fuction message, one would call the ibsic function of
the National Ins trumen t s software driv er. On the
other hand, the command *RST (Reset) is sent in a
command string to the addressed devic e. In the case
of the National Instru men ts example, this would b e
done by using the ibwrt function call.
1-12PRELIMINARY681XXA PM
Page 15
GENERAL GPIB681XXA GPIB
INFORMATIONOPERATION
1-4
681XXA GPIB
OPERATION
All Series 681XXA Synthesized Sweep Generator function s, settings,
and operating modes (excep t for pow er on/s tandby ) ar e contr ollable using commands sent fr om an external co ntr oller via the GPIB. Whe n in
the remote (GPIB) mode, the synthe sizer fun ction s both a s a listener
and a talker. The GPIB interface func tion capability of the 681XX A is
listed in Table 1-2 (page 1-10).
Setting
GPIB Operating Parameters
Response to
GPIB
Interface
Function
Messages
The 681XXA leaves the fac tory with th e GP IB ad dress value set to 5 and the data delimiting termin ator set to carr iage return and line feed (CR/LF). A
different ad dre ss value can be entered fr om the
front panel usin g the Config u re GPI B menu . Using
this same menu, the data delimiting terminator can
be changed to car riag e retu r n (CR) only. Refer to
Chapter 2 of the Series 681XXA Synthesized Sweep
Generator Operation Manual for the procedure.
Table 1-3 (page 1-14) lists the GPIB Interface Function Messages that the 681XXA will recognize and
respond to. With the exception of the Device Clear
and Selected Devic e Clear messag es, the se messages affect only the operation of the 681XXA GPIB
interface. The 681XXA response for each message is
indicated.
Interfac e fun ction messages are transmitted on the
GPIB data lines and inter fac e manageme nt line s as
either unaddressed or addr essed co mmand s. The
manner in which these messages are invoked in programs is implemen tation dependent. For programming information , refe r to the documentation
included w i th the GPIB Inte rface for the external
controller used.
681XXA PMPRELIMINARY1-13
Page 16
GENERAL GPIB681XXA GPIB
INFORMATIONOPERATION
T abl e 1-3. 681XXA Resp ons e to GPIB Interface Func tion Mes sages
Interface Function Message
Device Clear (DCL)
Selected Device Clear (SDC)
Go To Local (G TL)YesReturns the 681 X XA to local (front
Group Exe cut e Trigger
(GET)
Interface C lear (IF C)NoStops the 681XXA GPIB interface
Local Lockout (LLO)NoDisables the front panel menu
Remote Enable (REN)NoPlaces the 681XXA under remote
Serial-Poll Enable (SPE)NoOutputs the serial-pol l status byte.
Serial-Poll Disable (SPD)NoDisables the serial-poll function.
Parallel-Poll Configure (PPC)YesResponds to a parallel-poll
Addressed
Command
No
Yes
YesExecutes a string of commands, if
Resets the 681XXA to its default
state. (Equivalent to sending the
*RST command.)
panel) control.
program med.
from listening or talking. (The front
panel controls are not cleared.)
RETURN TO LOCAL soft-key.
(GPIB) cont ro l wh e n it has been
addressed t o l iste n.
message (PPOL L) by setting
assigned data bus l ine to the logica l
state (1,0 ) that indicat es it s cor rec t
SRQ status.
681XXA Response
Parallel-Poll Unconfigure
(PPU)
NoDisables the parallel-poll function.
1-14PRELIMINARY681XXA PM
Page 17
Chapter 2
Programming with
SCPI Commands
– SCPI Programming Informati on wil l be supp lied at a later date. –
Page 18
Chapter 3
Programming with
Compatible 67XX
GPIB Commands
Chapter 3
Programming with
Compatible 67XX
GPIB Commands
3-1
3-2
INTRODUCTION
COMMAND CODE S
This chapter prov ides info rmation for remote oper a tion of the Serie s
681XXA Synthesized Sweep Gene rator via the GPIB using compa tible
WILTRON Mod el 67XX Synthesizer GPI B comman ds. All 67XX GPIB
commands accepted and impleme nted by the 681XXA are listed and described by function . Sample progr am s showing usage of the command s
are also included.
There are over two hundred and forty 67XX GPIB commands that are
accepted and implemen ted by the 681XXA. These GP IB comman ds a llow the user to program all front pan el and men u func tions (ex cept for
power on/standby). Each GPIB command is a two- or three-character
mnemonic co de that represents an instrume nt co mmand or parameter;
for example: RST (reset).
Table 3-1, beginning on page 3-4, is a listing of all 67XX GPIB command mnemonic co des acc ep ted and implemen ted by the 681XX A
grouped into func tion al categ or ies. The listin g for eac h catego ry includes referen c es to the paragrap h an d page number in this chapter
where a complete description of that group of commands can be found.
NOTE
A quick way to determine the function of any of the GPIB
command codes listed in Table 3-1 is to look up the command
code of interest in Appendix B of this manual. Appendix B is
an alphabetical index of all compatible 67XX GPIB command
codes. A brief description of the function of each command is
also included.
681XXA PMPRELIMINARY3-3
Page 21
PROGRAMMING WITH COMPATIBLECOMMAND
67XX GPIB COMMANDSCODES
Table 3-1. Compatible 67XX GPIB Command Codes Listed by Function (1 of 2)
BPN, BPP, EP0 , EP1, PP0, PP1, RC0,
RC1, RT0, R T 1
GTC, GTD, GTF, GTL, GTO, GTS, GTT,
GTU, Y
), RCF, RCM,
1-9
3-93-20
3-103-22
3-113-24
3-123- 26
3-133- 3 1
3-143- 32
3-4PRELIMINARY681XXA PM
Page 22
PROGRAMMING WITH COMPATIBLEDATA INPUT
67XX GPIB COMMANDSRESTRICTIONS
Table 3-1. Compatible 67XX GPIB Comm an d Code s Listed by Function (2 of 2)
3-3
DATA INPUT
RESTRICTIONS
GPIB Command
Group Funct io n
Fast-Freque ncySwitching
Commands
Power-OffsetTable Command s
Self Test
Commands
Miscellaneous
Commands
ZL(X
PT0, PT1, PTC, PTL3-163-34
TST3-173-37
CS0, CS1, DS0, DS1, RL, RST, SNR3-183-39
Command CodesPara.Page
), ZEL, ZS(X
000-999
000-999)
3-153-33
The 681XXA sweep gene rator does not accept paramete r or data entries in an expon en tial o r scie ntific no tation for mat. Th e acc epted data
formats are as follows:
A decimal or inte ger format for enterin g parameter s and data.
A binary-byte forma t for ente ring bo th the s tatus by te mask commands (para. 3-12) and the RCF and RCM stor ed -setup com-
mands (para. 3-11).
Progr am min g Note: The sweep generator only reco gnizes the following 65 characters:
The 52 upper - and low er-case alphabetic ch arac ter s. (T he 681XX A
accepts both upper - and lower-case character s with out distinguishing between the cases).
The minus sign (–).
The comma (,).
The decimal point (.).
The numerals between 0 and 9.
All character s other than the 65 listed above ar e ignor ed an d can be interspersed betw een meanin gfu l char acter s with ou t ill effect. Th is use
of other charac ters can impr ove read ability. For examp le, the two command strings below are valid and interchangable.
PROGRAMMING WITH COMPATIBLEPARAMETER AND DATA
67XX GPIB COMMANDSENTRY COMMANDS
3-4
P ARAM ETER AND DATA
ENTRY COMMANDS
Table 3-2 lists the comman d mne mon ic codes that open parame ters for
data entry. The table also provid es the ran ge of values per mi tted for
each parameter and the data termin ator mnemon ic codes for eac h. Tables 3-3 and 3-4, located on page 3-8, list the data entry and data terminator command mnemonic codes.
Opening a
Parame ter
Data EntryWhen a parameter is open for data entry, its value
All of the commands listed in Table 3-2 open a parameter for data entry. Once opened, a parameter remains open until one of the following occurs:
Another parameter is opened.
A fu nc tion other than video marker s, intensity
markers, or outpu t power lev elin g is commanded.
The CLO (close open parameter ) comman d is received.
can be changed as follows:
By sending a nu mer ic value follow ed by the appropriate terminator code.
By incrementing or decrementing its value using an associated step size.
NOTE
An appropriate data terminator must be
used to terminate a numeric-par ameter en try, and it must immediately follow the numeric value. If it does not, a parameter en try
error will result.
The parameter and data entry commands do no t affect the sweep ge nerator’s output unless the parameter bein g changed is also the curren t
output parame ter. The comman ds, theref or e, may be used to chan g e
the preset valu es of parameters without altering the 681X XA’s output.
Example: Assume that the 681X X A is executing an F3-F4 sweep from
3 GHz to 10 GHz. Chang in g the value of F1 to 3 GHz with the command string “F1 3 GH” does not affect the current output of the sweep
generator. However, chang in g the value of F4 with the comman d strin g
“F4 16.01 GH” alters the output of the 681XXA because it change s
the end point of the F3-F4 sweep to 16.01 GHz.
3-6PRELIMINARY681XXA PM
Page 24
PROGRAMMING WITH COMPATIBLEPARAMETER AND DATA
MNEMONIC
CODE
PARAMETERV ALUESTERMINATOR
F0
F1
F2
F3
F4
F5
F6
F7
F8
F9
Opens t he F0 pa ram eter
Opens t he F1 pa ram eter
Opens t he F2 pa ram eter
Opens t he F3 pa ram eter
Opens t he F4 pa ram eter
Opens t he F5 pa ram eter
Opens t he F6 pa ram eter
Opens t he F7 pa ram eter
Opens t he F8 pa ram eter
Opens t he F9 pa ram eter
Dependent on the
frequency range of
the instrument
GH
MH
KH
HZ
M0
M1
M2
M3
M4
M5
M6
M7
M8
M9
Opens t he M0 par ameter
Opens t he M1 par ameter
Opens t he M2 par ameter
Opens t he M3 par ameter
Opens t he M4 par ameter
Opens t he M5 par ameter
Opens t he M6 par ameter
Opens t he M7 par ameter
Opens t he M8 par ameter
Opens t he M9 par ameter
Dependent on the
frequency range of
the instrument
GH
MH
KH
HZ
DLF
DFF
DFM
Opens the ∆F par ameter
Opens the ∆F par ameter
Opens the ∆F par ameter
Dependent on the
frequency range of
the instrument
GH
MH
KH
HZ
SDTOpens the st ep s we e p
dwell time parameter
1 ms to 99 secMS
SEC
SNSOpe ns the st ep s we e p
numb er of steps
parameter
1 to 10,000SPS
SWTOpens the analog sweep
and CW ram p tim e
parameter
30 ms to 99 secMS
SEC
LOSOpens the level offset
parameter
+100 dB to –100 dBDB
PDTOpens the power sweep
dwell time parameter
1 ms to 99 secMS
SEC
PNSOpens the power sweep
numb er of steps
parameter
1 to 10,000SPS
Table 3-2. Parameter Entry Commands (1 of 2)
67XX GPIB COMMANDSENTRY COMMANDS
681XXA PMPRELIMINARY3-7
Page 25
PROGRAMMING WITH COMPATIBLEPARAMETER AND DATA
67XX GPIB COMMANDSENTRY COMMANDS
Table 3-2. Parameter Entry Com mands (2 of 2)
MNEMONIC
CODE
FMSOpens the FM sensitivity
SYZOpens the step-size
UPIncrements the open
DNDecrements the open
CLOCloses the previously
T abl e 3-3. Data Entry Commands
MNEMONIC
CODE
0, 1, 2, 3, 4,
5, 6, 7, 8, 9
PARAMETERVALUESTERMINATOR
parameter
parameter for updati ng
parameter by the step size
parameter by the step size
opened paramet er
Numerals for para me ter value entries
–6 MHz/V,
+10 MHz/V, or
+20 MHz/V
Dependent on the
open parameter
N/AN/A
N/AN/A
N/AN/A
DESCRIPTION
KV
MV
GV
N/A
–Change sign of input
.Decimal poin t
CLRClear data entry
T abl e 3-4. Data Terminator Codes
MNEMONIC
CODE
DB
DM
GH
MH
KH
HZ
SEC
MS
US
GV
MV
KV
PCV
SPS
Decibels (dB)
dBm
GHz
MHz
kHz
Hertz (Hz)
Seconds
Milliseconds (ms)
Microseconds ( µs)
GHz per volt (GHz/V)
MHz per volt (MHz/ V)
kHz per volt (kHz/V)
Percent per volt (%/ V)
Steps
DESCRIPTION
3-8PRELIMINARY681XXA PM
Page 26
PROGRAMMING WITH COMPATIBLEPARAMETER AND DATA
67XX GPIB COMMANDSENTRY COMMANDS
Using the SYZ
Command
Each 681XXA parameter has an as sociated step size
that can be used to increment or decrement its
value. Parameters that have common units share a
common step size. For example, the frequenc y parameters (F0-F9, M0-M9, and ∆F) have a common
step size as do the power level parameters (L1, L2,
and Level Offset). Other parameter s, suc h as analog
sweep time, have individual step sizes.
To set the step size for a parameter, first send the
command code to open the par ameter, then send the
SYZ command. Now set the step size by sending a
numeric string with the proper terminator. When
the terminator is receive d, the step size is accepted
and the origin al parameter is again ope n for entry.
Figure 3-1 shows how the SYZ command c an be used
to increment a parameter. In this example, the F1
frequenc y parame ter is set to 4 GHz, the step size is
set to 10 MHz, and F1 frequency is incremen ted
three time s by the value of the s tep size.
F14 GHSYZ10 MHUPUPUP
Sets a step size of 10 MHz, ends the step-size entry,
and reopens the F1 parameter.
Opens the step-size parameter for F1.
Sets the F1 Parameter to 4 GHz.
Selects the F1 Parameter and opens it for entry.
Figure 3-1. Using the SYZ (Step Size) Command
Increments F1 from 4.02 GHz to 4.03 GHz.
Increments F1 from 4.01 GHz to 4.02 GHz.
Increments F1 from 4.00 GHz to 4.01 GHz.
681XXA PMPRELIMINARY3-9
Page 27
PROGRAMMING WITH COMPATIBLECW FREQUENCY
67XX GPIB COMMANDSCOMMANDS
3-5
CW FREQUENCY
COMMANDS
Table 3-5 lists the CW frequency command mnemonic codes. Th ese
commands call up each of the 20 prese t (or previou sly se t) CW frequen cies. Each command cau ses its associated CW freque ncy to be output
and opens that freque ncy ’ s par ameter for data entry.
The command, SQF, ac cesses the preset freque nc ies in sequen tial order—tha t is, F0 to F9 and M0 to M9.
Table 3-5. CW Frequency Commands
MNEMONIC
CODE
CF0
CF1
CF2
CF3
CF4
CF5
CF6
CF7
CF8
CF9
CM0
CM1
CM2
CM3
CM4
CM5
CM6
CM7
CM8
CM9
Set CW mode at F 0
Set CW mode at F 1
Set CW mode at F 2
Set CW mode at F 3
Set CW mode at F 4
Set CW mode at F 5
Set CW mode at F 6
Set CW mode at F 7
Set CW mode at F 8
Set CW mode at F 9
Set CW mode at M0
Set CW mode at M1
Set CW mode at M2
Set CW mode at M3
Set CW mode at M4
Set CW mode at M5
Set CW mode at M6
Set CW mode at M7
Set CW mode at M8
Set CW mode at M9
FUNCTIONOPENS FOR ENTRY
F0 paramet er
F1 paramet er
F2 paramet er
F3 paramet er
F4 paramet er
F5 paramet er
F6 paramet er
F7 paramet er
F8 paramet er
F9 paramet er
Places the 681XXA at the preset (or previously set) CW F1
frequency and opens the F1 parameter for data entry.
Closes the F1 parameter. Places the 681XXA at the
preset (or previously set) CW F6 frequency and opens the F6
parameter for data entry. Sets the F6 frequency to 7 GHz.
Closes the F6 parameter. Places the 681XXA at the
preset (or previously set) CW F7 parameter and opens
the F7 parameter for data entry.
Figure 3-2. Example of a CW Frequency Comma nd Stri n g
67XX GPIB COMMANDSSWEEP COMMANDS
Progr am min g Note: Sweep gene rator response to a SQF command
depends on the state the instrume nt i s in at the time the command is
received . For example, if the 681X XA is in a CW mode of operation
with the cur re nt ou tput fr equ en cy open for entr y, the SQF command
(1) causes the output to change to the next sequential frequency and
(2) opens that frequ enc y’s parameter for data entry. However, if the instrument is in any other mode of operation, the SQF command causes
it to switch to the last CW frequency that was output and opens that
parameter for data entry.
Figure 3-2 is an example of a CW frequency command strin g.
3-6
ANALOG AND ST EP
SWEEP COMMANDS
681XXA PMPRELIMINARY3-11
Table 3-6 (page 3-13) lists the analog and step sweep command mnemonic codes. These co mmand s are divid ed into fiv e subclasses and are
described in the following paragraphs.
Sweep RangeSeven swee p rang es are available. The SF1 and SF3
commands selec t the sweep rang es of F1-F2 an d F3F4 respectively; the FUL command selec ts a full
band sweep from the swee p generator’ s low fre quency limit to its high fr equ en cy limit.
The DF0, DF1, DF5, and DF6 commands each select
a symmetrical fre que ncy sweep aroun d F0, F1, F5,
and F6 respectively. The width of the sweep is determined by the ∆F frequency parameter.
Page 29
PROGRAMMING WITH COMPATIBLEANALOG AND STEP
67XX GPIB COMMANDSSWEEP COMMANDS
Progr amming Examples:
Programming “F1 2 GH F2 8 GH SF1” sets F1 to
2 GHz, F2 to 8 GHz, and implements a F1-F2 frequency sweep.
Programming “DLF 6 GH F5 7 GH DF5” sets ∆F to
6 GHz, F5 to 7 GHz, and implements a F5-∆ F frequency sweep.
Progr am min g Note:
If the commanded sweep rang e is invalid, a parameter erro r (paragraph 3-19) will be generated, and the
output of the sweep gener ator will not be altered.
A swee p rang e is invalid if (1) the sweep start frequency is greater than the stop frequency, or (2) the
∆F frequency parameter resu lts in a sweep that is
outside the range of the instrument.
Alternate
Sweep
Sweep
Trigge rin g
Six alternate sweep comman ds are available. If the
681XXA is sweeping when the alternate swe ep command is received, the swee p generator’ s outpu t will
alternate between the commanded sweep an d the
sweep then being executed.
Progr amming Example:
Assume that the 681XXA had been previously programmed and was then execu tin g an F1-F2 sweep .
Programming “AF3” would then activate the F3-F4
sweep and cause it to alternate with the F1-F2
sweep.
Progr am min g Note:
An alternate swee p command will only be recog n ized
when the 681XXA has been programmed to sweep. It
will be ignored at all other times.
Two modes of sweep triggering are available over the
bus—Automatic and Single. The AUT command se-
lects automatic sweep triggering; the EXT command
selects single sweep triggering.
When automatic sweep triggering is selected, the
sweep continu ally sweep s from its start frequen c y
(or power level) to its stop frequen cy (or pow er level)
with optimal retrace time.
3-12PRELIMINARY681XXA PM
Page 30
PROGRAMMING WITH COMPATIBLEANALOG AND STEP
MNEMONIC
CODE
FUNCTION
OPENS
FOR ENTRY
SF1
SF3
FUL
DF0
DF1
DF5
DF6
Sweep Range
Selects the F1-F2 sweep mode
Selects the F3-F4 sweep mode
Selects the Full Range sweep mode
Selects the F0-∆F sweep mode
Selects the F1-∆F sweep mode
Selects the F5-∆F sweep mode
Selects the F6-∆F sweep mode
Selects Auto T rigger
Selects Single Trigger
Triggers a Single Sweep
Triggers a Single Sweep
Resets a Sweep if in progress
None
None
None
None
None
SWP
SSP
MAN
DU1
DU0
TSS
Analog/Step Sweep Selec t
Selects Analog Sweep
Selects Step Sweep
Selects Manual (Step) Sweep
Selects Dual Step Sweep mode
Deselects Dual Step Sweep mode
Steps to next point in DU1 mode
None
None
None
None
None
None
SP1
SP0
Special Step Sweep (Step s Not Equally Space d)
Selects non-equally sp aced step sweep
Deselects non-eq ually spac ed step swe ep
None
None
Table 3-6. Analog and Step Sweep Commands
67XX GPIB COMMANDSSWEEP COMMANDS
When single swe ep trig g er ing is selected, a single
sweep starts when the TRG or TRS command is re-
ceived . Th e RSS comman d resets the sweep to its
start frequenc y (or pow er level), w he ne ver the command is receiv ed while a single swee p is in prog r es s.
681XXA PMPRELIMINARY3-13
Page 31
PROGRAMMING WITH COMPATIBLEANALOG AND STEP
67XX GPIB COMMANDSSWEEP COMMANDS
SF1
Analog/Step
Sweep Select
AUTSWPEXTTRSSSPTRS
Three commands are available—SWP selects an analog sweep, SSP selects a step sweep , and MAN selects a manual (step) sweep. The selected swee p
mode applies to all sweep ranges. Fig ur e 3-3 shows
an example of a sweep command str ing.
Progr am min g Not es:
Commanding either SWP or SSP does not, by itself,
provid e a swept-fr equ enc y outpu t. It only determines whether the swep t-fr equ en cy outp ut will be
an analog or step sweep. If, on the other hand, a frequency sweep is being outpu t by the 681XXA when
one of these commands is received, that sweep will
assume the commanded sweep mode.
The MAN command only provides for setting up the
sweep generator for a manual sweep . It must be accompanied by the RL command to return the ins trument to local (front panel) control in order for the
operator to perfor m the man ual swe ep.
Selects ANALOG sweep.
Selects AUTO triggering.
Selects the F1-F2 sweep range.
Figure 3-3. Example of a Sweep Command String
Triggers a single sweep.
Selects step sweep.
Triggers a single sweep.
Selects the External/Single triggering mode.
3-14PRELIMINARY681XXA PM
Page 32
PROGRAMMING WITH COMPATIBLEANALOG AND STEP
67XX GPIB COMMANDSSWEEP COMMANDS
Dual Step Sweep Mode
The dual step sweep mode provide s for gene ratin g
synchronized, step sweep outputs from two 681XXAs
at a frequency offset. Fig ure 3-4 shows an example
of dual step sweep programming.
10 ! "DUAL"
20 CLEAR
30 DISP "ENTER # OF STEPS"
40 INPUT S
50 DISP "ENTER WAIT TIME [mS]
60 INPUT W
70 WAIT 100
80 DISP "ENTER ’LO’ START FREQ [GHz]"
90 INPUT F1
100 DISP "ENTER ’LO’ STOP FREQ [GHz]
110 INPUT F2
120 DISP "ENTER OFFSET [GHz]
130 INPUT F3
140 !
150 ! Initialize both 681XXA’s
160 !
170 OUTPUT 705 ;"CF1F1";F1;"GHF2";F2;
"GHSNS";S;"SPSSSPEXTCLO"
180 OUTPUT 706 ;"CF1F1";F1+F3;"GHF2";
F2+F3;"GHSNS";S;"SPSSSPEXTCLO"
190 WAIT 1000
200 !
210 ! Set both to dual mode and enable
GET to end DWELL
220 !
230 SEND 7 ; CMD "%&" DATA "GTLDU1SF1"
EOL
240 WAIT 100
250 ! Trigger the sweep and wait for
retrace to finish
260 SEND 7 ; CMD "%&" DATA "TRS" EOL
270 WAIT 100
280 ! Listen address both 681XXA’s
290 SEND 7 ; CMD "%&"
300 FOR C+1 TO S+1
310 WAIT W
320 ! Trigger both to next point
330 TRIGGER 7
340 NEXT C
350 GOTO 260
Figure 3-4. Dual Step Sweep Program ming Exa mp le
681XXA PMPRELIMINARY3-15
Page 33
PROGRAMMING WITH COMPATIBLEFREQUENCY
67XX GPIB COMMANDSMARKER COMMANDS
Special Step
Sweep
For this example , assum e a freq uenc y sweep of 3 GHz to 10 GHz, with steps at 3,
6, 8, 9, and 10 GHz.
This special step sweep pro vid es for a step sweep
that has non-equally spaced steps. It can be used in
any of the available sweep ranges (F1-F 2, F3-F4,
Full, F0-∆F, F1-∆F, F5-∆F, and F6-∆F). The start fre-
quency in this sweep mu st be equal to the first frequency progr ammed wi th the ZL(X
(Table 3-15). The intermediate steps can be programmed to be any frequenc y within the range of
the programme d sweep .
Progr am min g Note:
The SP1 command can be used wi th the dual step
sweep mode.
Figure 3-5 shows an example of special step sweep
programming.
000-999
) command
3-7
FREQUENCY MARKE R
COMMANDS
Explanation of Code
Line 10 sets up the step frequencies .
Line 20 sets star t and stop f re quen cies and number of step s (frequen cy point s – 1).
Line 30 set the sweep generator to SP1, Step Sweep, and F1-F2 swe ep range.
Figure 3-5. Special Step Sweep Programmin g Example
Table 3-7 lists the frequency marke r command mnemonic codes. These
commands provide for (1) selectin g a CW frequency as a potential
marker, (2) selecting a potential marke r as an active mark er, and (3) in dividually tur n ing markers on and off.
The ME1 command will enable a marker at the current frequen c y that
is open for upda te; the ME 0 command will disable the same marker. If
a frequency par ameter is not open, no action will be taken. The IM1
and VM1 comman ds will turn on their resp ec tive inte nsity and video
marke rs. The MK0 command will turn all markers off.
Figure 3-6 shows an examp le of a frequen c y marker co mmand string.
3-16PRELIMINARY681XXA PM
Page 34
PROGRAMMING WITH COMPATIBLEFREQUENCY
67XX GPIB COMMANDSMARKER COMMANDS
Table 3-7. Frequency Marker Commands
MNEMONIC
CODE
ME1Enables a marker at the active frequency
ME0Disables the marker at the active fre quen cyNone
MK0Turns off markers. Enabled markers remain
IM1Tur ns on the intensity marker modeNone
VM1Turns on the video mark er modeNone
Progr am min g Note: Only one marker mode can be active. Consequently, if the intensity marker mode is active and the video marker
mode is programmed, the displayed markers will change to video markers. Either mode can be turned off with the MK0 command.
VM1F1 ME0 F7 ME1 F4 ME1MK0
FUNCTION
(F0-F9 or M0-M9)
enabled, but are not active
OPENS
FOR ENTRY
None
None
Turns both markers off, but leaves the F7 and F4 markers
enabled. Therefore, when IM1 or VM1 is next programmed,
two frequency markers will reappear on the display — provided
their frequencies are within the 681XXA's sweep range.
Enables the F4 frequency marker.
Enables the F7 frequency marker.
Disables the F1 frequency marker.
Turns on the video-marker mode, and turns off the
intensity-marker mode (if previously enabled).
Figure 3-6. Example of a Frequency Marker Command String
681XXA PMPRELIMINARY3-17
Page 35
PROGRAMMING WITH COMPATIBLEMODULATION
67XX GPIB COMMANDSCOMMANDS
3-8
MODULATION
COMMANDS
Table 3-8 lists the modulation command mnemon ic codes. These commands provide fo r AM, FM, and squ are wave/ pu lse modu l ation of the
sweep generator’s output signal.
NOTE
During remote operation of the 681XXA via the GPIB, all
external AM, FM, and square wave/pulse modulating signals
must be input to the front panel connectors.
Amplitude
Modulation
Frequency
Modulation
Two AM modes are available—Linear an d Log. The
AM1 command turns on the external AM function in
Linear mode (100%/V sen sitiv ity) . The AM2 com mand turns on the exter nal AM fu nction in Log
mode (10 dB/V sensitivi ty). The AM 0 command turns
off the exter n al AM fun ction .
Two FM modes are available—Narrow and Wi d e.
The FM1 (or FMU) command turns on the external
FM function in Narro w mode . Narrow FM mode allows maximum deviation s of 50 MHz. The FMW command turns on the exter nal FM func tion in W ide
mode. Wide FM mode allows maximum deviations of
100 MHz. The FM0 command turns off the external
FM function. In both Narro w and W i d e FM modes,
the 681XXA output signal is not phase locked to facilitate greater FM deviations.
Square Wave
Modulation
Progr am min g Note:
When an FMS (FM sensitivity) parameter entry is
made, one of three FM sensitivities will be selec ted
depending on the input.
For a parameter entry of <0 MHz/V, the FM
sensitivity will be set to –6 MHz/V.
For a parameter entry of 0 to <15 MHz/V, the
FM sensitivity will be set to +10 MHz/V.
For a parameter entry of ≥1 5 MH z/ V, the FM
sensitivity will be set to +20 MHz/V.
Two square wave modulation modes are available—
Internal and External. In internal mode, square
wave modulation of the output signal by one of four
modulating signals is available using the following
commands:
SW1 turns on modulation at 400 Hz.
SW2 (or SQP) turns on modulation at 1 kHz.
SW3 turns on modulation at 7.8125 kHz.
SW4 turns on modulation at 27.8 kHz.
3-18PRELIMINARY681XXA PM
Page 36
PROGRAMMING WITH COMPATIBLEMODULATION
MNEMONIC
CODE
FUNCTION
AM0T ur ns off the exter nal AM funct ion. (T his is t he de fa ult m od e. )
AM1T ur ns on the exter nal AM funct ion in Line ar mode. (Front pa nel
exte r na l AM in pu t at 6 00 Ω impedance.)
AM2T ur ns on the ext ernal AM function in Log mode. ( Fro nt pane l
exte r na l AM in pu t at 6 00 Ω impedance.)
FM0Tur ns off the external FM funct ion an d re- est ab lish es pha se
lock. (This is the default mode. )
FM1Tur ns on the ex te rna l FM funct ion in Nar row m od e. The sweep
generator outp ut is not phase- locke d. (Front pane l exte rna l FM
input at 600Ω impedanc e. )
FMWTurns on the externa l FM funct ion in W id e mode. Th e swee p
generator outp ut is not phase- locke d. (Front pane l exte rna l FM
input at 600Ω impedanc e. )
FMUSame as FM1. T ur ns on t he ex te rna l FM func tion in Narro w
mode. The sweep generator output is not phase-lo cked. (Front
panel external FM input at 600Ω impedance.)
P0Turns off the sq uar e wave/ pu lse modulat ion m ode.
SQPTurns on internal squa re wave modulat ion at 1 kHz.
SW0Same as P0. Turns of f the squar e wa v e/pulse m od ulat io n
mode.
SW1Turns on internal squa re wave mo dulat ion at 400 Hz.
SW2Same as SQP. Tur ns on inter nal squ are wave mod ulat io n at
1 kHz.
SW3Turns on internal square wave mo dulat ion at 7. 8125 kHz.
SW4Turns on internal squa re wave mo dulat ion at 27. 8 kHz.
XPTur ns on the ex te rna l squar e wave/ pu lse mo dulat ion mode.
(Front panel exter nal squ are wave/ pulse input .)
Table 3-8. Modulation Com mands
67XX GPIB COMMANDSCOMMANDS
The XP comman d turns on the external square
wave/pulse modulation mode. Both the SW0 and P0
commands turn off the squar e wave modu lation
mode.
681XXA PMPRELIMINARY3-19
Page 37
PROGRAMMING WITH COMPATIBLEOUTPUT POWER
67XX GPIB COMMANDSLEVELING COMMANDS
3-9
OUTPUT POWER
LEVELING COMMANDS
Table 3-9 lists the outpu t power levelin g command mne mon ic codes.
These commands provide (1) for turning the power leveling off or (2) for
leveling the output power using any of the following:
The internal leveling detector.
An external detector conn ec ted to the front pane l EX TERNAL ALCIN connector.
An external pow er meter con ne cted to the front panel EXTERNALALC IN connecto r.
Figure 3-7 shows an examp le of a output power lev el command s tring .
Table 3-9. Power Leve li n g C om mands (1 of 2)
MNEMONIC
CODE
L1Selects the L1 power level value as the R F
output power level.
Deselects the L2 parameter, if previously
programmed.
L2Selects the L2 power level value as the R F
output power level.
Deselects the L1 parameter, if previously
programmed.
FUNCTION
OPENS
FOR ENTRY
L1
L2
RF1Turn s on the RF output. (This is the def ault
mode.)
RF0Turns off the RF out p ut.None
LO1Turn s on t he Lev el Of f set funct ion. The value of
the Level Of f set parameter is added to the le vel
measured by the inte rna l leveling loop. Th e
resultant power level value is display ed.
LO0Turn s of f t he Lev el Of f set funct ion.None
IL1Select s inter nal leveling of the output power.
(This is the default mode. )
Deselects the DL1 or PL1 leveling m odes , if
previously programmed.
DL1Selects external leveling of the output power ,
using a signal from an external det ec to r
connected to the front panel EXTERNAL ALC
IN connector.
Deselects the IL1 or PL1 level ing modes, if
previously programmed.
None
None
None
None
3-20PRELIMINARY681XXA PM
Page 38
PROGRAMMING WITH COMPATIBLEOUTPUT POWER
67XX GPIB COMMANDSLEVELING COMMANDS
T abl e 3-9. Power Leveling Comm and s (2 of 2)
MNEMONIC
CODE
PL1Selects external leveling of the output power
using a signal from an exte rna l power m eter
connected to the front pan el EXTERNAL ALC
IN connnector.
Deselects the IL1 and DL1leveling m ode s, if
previously progra mmed .
LV0Turns off leveling of the output power.None
LSPSelects the Power Sweep mode. Th e power
level will sweep as determined by the preset (or
previously set) dwell- time and number -of- st eps
param eters.
EG1Provides for entering a value for the ext ern al-
level gain DAC.
EG0Outputs the value of the exter nal-lev el gain
DAC.
FUNCTION
OPENS
FOR ENTRY
None
None
None
None
RF0L1 2 DML2 12 DMPNS 10 SPSLSPRF1
Selects a power sweep and 10 steps.
Selects Level 2 and sets it for 12 dBm.
Selects Level 1 and sets it for 2 dBm.
Turns the RF output off.
Figure 3-7. Example of an Output Power Level Comm and String
Turns the RF output on.
Selects a level sweep.
681XXA PMPRELIMINARY3-21
Page 39
PROGRAMMING WITH COMPATIBLEOUTPUT
67XX GPIB COMMANDSCOMMANDS
3-10
OUTPUT COMMANDS
Table 3-10 lists the outpu t command mne mon ic codes. These commands provide for the ou tput of data from the sweep g en era tor to the
controller. Figure 3-8 (pag e 3-24) shows examp les of outpu t comman d
programming.
Table 3-10. Output Commands (1 of 2)
MNEMONIC
CODE
OICauses the sweep gene rator to identify it self by sending th e
followin g param et er infor ma tion over the bus; mo del num ber,
low-end frequency, high-end frequency, minimum output power
level, maximum outp ut power lev el, so ftwar e revision num be r,
serial number, model prefix (A or B), and series (1 or 2). This
command can be us ed to send para me ter inf ormat ion to t he
controller automa tica lly, thus relieving the opera to r from hav ing
to input the info rmat ion manua lly. The string is 34 characters
long.
OFLReturns the low-end freq uenc y value (in MHz) to the contro ller.
OFHRet ur ns the high- end freque ncy va lu e (in MHz) t o the
controller .
OF0Returns the F0 frequen cy value (in MHz) to the cont ro ller.
FUNCTION
OF1Returns the F1 frequen cy value (in MHz) to the cont ro ller.
OF2Returns the F2 frequen cy value (in MHz) to the cont ro ller.
OF3Returns the F3 frequen cy value (in MHz) to the cont ro ller.
OF4Returns the F4 frequen cy value (in MHz) to the cont ro ller.
OF5Returns the F5 frequen cy value (in MHz) to the cont ro ller.
OF6Returns the F6 frequen cy value (in MHz) to the cont ro ller.
OF7Returns the F7 frequen cy value (in MHz) to the cont ro ller.
OF8Returns the F8 frequen cy value (in MHz) to the cont ro ller.
OF9Returns the F9 frequen cy value (in MHz) to the cont ro ller.
OM0Returns the M0 frequency value (in M Hz) to the cont roller.
OM1Returns the M1 frequency value (in M Hz) to the cont roller.
OM2Returns the M2 frequency value (in M Hz) to the cont roller.
OM3Returns the M3 frequency value (in M Hz) to the cont roller.
OM4Returns the M4 frequency value (in M Hz) to the cont roller.
3-22PRELIMINARY681XXA PM
Page 40
PROGRAMMING WITH COMPATIBLEOUTPUT
MNEMONIC
CODE
FUNCTION
OM5Retur ns the M 5 freq uenc y value ( in MHz) to the cont ro ller.
OM6Retur ns the M 6 freq uenc y value ( in MHz) to the cont ro ller.
OM7Retur ns the M 7 freq uenc y value ( in MHz) to the cont ro ller.
OM8Retur ns the M 8 freq uenc y value ( in MHz) to the cont ro ller.
OM9Retur ns the M 9 freq uenc y value ( in MHz) to the cont ro ller.
OL1Returns the L1 power value (in dBm) to the cont roller.
OL2Returns the L2 power value (in dBm) to the cont roller.
OLOReturns t he Le vel Of f set powe r value (in dB) to the con troller.
ODF
Returns the ∆F fre quen cy value (in MHz) to the cont ro lle r .
OPDRet urns t he dwe ll time of the powe r sweep (in ms) to th e
controller.
OPSReturns the nu mb er-of -ste ps of the power sweep to the
controller.
OSDRet ur ns the d we ll t ime of t he step s we ep (in m s) to the
controller.
OSSReturns the number- of-ste ps of the step sweep to the
controller.
OSTReturns the sweep t ime va lue (in m s) to the con troller.
OVNRet urns t he RO M ver sion num be r to the cont r ol ler.
OWTReturns the GPI B terminat ion st at us to the con troller. (0=CR;
1=CRLF)
OSEReturns t he last G PI B synt ax er ro r to th e cont r o lle r .
OEMReturns the Extended SRQ M ask by tes (3 binary byte s) to the
controller.
OESReturns the G PI B Sta tus byt es (3 binar y bytes) to the
controller.
OSBReturns the Primary GPIB Status byte to the controller.
OSMReturns the Primary SRQ Mask byte to the controller.
OSRRet urns t he se lf-te st results (6 binar y bytes) to the contro ller.
Table 3-10. Output C o mmands (2 of 2)
67XX GPIB COMMANDSCOMMANDS
681XXA PMPRELIMINARY3-23
Page 41
PROGRAMMING WITH COMPATIBLESTORED SETUP
67XX GPIB COMMANDSCOMMANDS
760 OUTPUT 705;"OF1"
770 ENTER 705;A
780 PRINT "F1 is set at ";A;" MHz"
1050 OUTPUT 705;"OSS"
1060 ENTER 705;A
1070 PRINT "Step Sweep has ";A;" Steps"
Figure 3-8. Output Command Progra mmi ng Exam ple s
3-11
STORED SE TUP
COMMANDS
Table 3-11 lists the stored setup command mnemonic codes. These commands provide for savin g instru men t setups and recallin g them for use.
A cur ren t instru men t setup can be saved to internal se tup memory using the SSN(M
to nine instrumen t setups can be stored in this mann er. The command
RSN(M
memory location s 1 to 9.
If more than nine ins trumen t setups are ne eded , or if it is desirable to
store the setups in the controller instead of the sweep gene rator memory, the 681XXA can be commanded to outpu t and accept stor ed setups
over the bus.
The SAF command outputs the current instrument setup to the control-
ler in a 300-byte (approximately) binary data string. The controller
stores the instrument setup. The RCF command readies the swe ep generator to receiv e a new instrumen t setu p recalle d fro m the contr oller.
Figure 3-9 shows an examp le of SAF and RCF command programming.
The SAM and RCM comman ds perform the same func tions as described
for the SAF and RCF commands, except that all of the stored ins trument setups are includ ed in the binary data string along with the current instrumen t setup. For these comman ds, the binar y data string is
approximately 3000 bytes long.
) recalls a stored instrument setup from inter n al setup
1 to 9
) command, where M = memory locations 1 to 9. Up
1 to 9
3-24PRELIMINARY681XXA PM
Page 42
PROGRAMMING WITH COMPATIBLESTORED SETUP
MNEMONIC
CODE
FUNCTION
SAFOutputs the cur re nt instrum ent set up to the co ntroller.
SAMOut put s both t he cu rrent inst rumen t setu p and all store d
instrume n t setu ps t o th e cont ro l ler.
SMRecalls the next stored instrument set up in seq uenc e.
SSN(M
1-9
)Saves the current instru me nt set up to inte rna l setu p memo ry
location M, whe re M = 1 to 9.
RCFReadies the 681XXA to receive a new instrument setup
recalled from the control ler.
RCMReadies the 681XXA to receive a new instrument setup and
new stored setu p s reca l led from the cont r o lle r .
RSN(M
1-9
)Recalls the instrume nt setup st ored in in te rna l setu p memo ry
location M, whe re M = 1 to 9.
Table 3-11. Stored Setup Commands
10 DIM A$ [300]
20 OUTPUT 705; "SAF"
30 ENTER 705 USING "#%, #%K"; A$ (Requires EOI
to be the terminator of the read.)
40 OUTPUT 705; "RCF"; A$ (A$ must follow the SAF.)
Figure 3-9. SAF and RCF Command s Pro gra mmi ng Exam p le
67XX GPIB COMMANDSCOMMANDS
Progr am min g Note: The SAF and SAM commands output binar y
data. The data string is termina ted with “ EO I” on the last byte sent
(no CR or LF is sent).
681XXA PMPRELIMINARY3-25
Page 43
PROGRAMMING WITH COMPATIBLESRQ AND STATUS
67XX GPIB COMMANDSBYTE COMMANDS
3-12
SRQ AND ST A T US
BYTE COMMANDS
Table 3-12 (page 3-28) lists the Service Request (SRQ) and Status Byte
command mnemonic codes. These commands enable the sweep generator to request service from the controller when certain, predefined conditions ex ist.
Status BytesThe 681XXA h a s three GPIB s tatus by tes—th e p ri-
mary and two extended status bytes. Figu re 3-10
shows the three statu s by tes an d identifies the
status reporting fu nction of each status byte bit.
Each status reporting bi t, with the excep tion of primary status byte bit 6 (SRQ), is set when the condition on which i t repor ts is detec te d. Th ese ch an g e s
in status byte bit settings can be read by the contr oller as follows:
The contents of the primary status byte is returned to the contr oller in re spon se to a serial
poll or the OSB command.
The contents of the primar y status byte and
the two extended status bytes are returned t o
the controller in response to the OES command. Figure 3-11 (page 3-29) shows an example of OES command programming.
SRQ
Generation
The sweep gen er a tor can g ener a te GPIB ser vice r equests (SRQs) to report instrument status and syntax errors to the controller. The sweep g ener a tor will
generate an SRQ if:
1. Th e SRQ ge ne ration fu nc tion has been enabled using the SQ1 command and,
2. O ne (or more) of the status reporting function s is
true an d ,
3. Th e pr imary status byte bit associated with the
true status reportin g func tio n has been enabled.
Bits in the primary status byte can be enabled by
either of two methods. Th e fir st uses the FB1/F B0,
ES1/ES0, UL1/UL0, LE1/LE0, PE1/PE0, SE1/SE0, and
SB1/SB0 commands, described in Table 3-12, to indi-
vidually enable or disable each bit. The second
method uses a single 8-bit status byte mask (MB0) to
enable any or all of the primary status byte bits.
Figure 3-12 (page 3-30) show s examples of status
byte mask programming .
3-26PRELIMINARY681XXA PM
Page 44
PROGRAMMING WITH COMPATIBLESRQ AND STATUS
NOTE
All status byte bits are latched except for those indicated with the “*”. Once
set, an OES or OSB comman d must be received before the co nditio n will
be reset. The primary status byte bit 6 (SRQ) is cleared by a serial poll
only.
Primary status byte bit 0 is set whenever one of the stat us condition s rep orted
by an extended st atus by te 1 is true and the as sociat ed status bit is enabled.
This bit is cleared when the controller send s the OES com mand.
Primary status byte bit 7 is set whenever one of the stat us condition s rep orted
by an extended st atus by te 2 is true and the as sociat ed status bit is enabled.
This bit is cleared when the controller send s the OES com mand.
Primary status by te bit 6 (SRQ) is not maskable. This bit is set by the SQ 1 c ommand and cleared by a serial poll.
Extended stat us byte 1 bits are enabled by the extende d stat us byte 1 mask
command, MB1.
Extended stat us byte 1 bit 0 (SelfTest Failed) and bit 2 (Self Test Complete)
should not be unma sked at the same time.
Extended stat us byte 2 bits are enabled by the extende d stat us byte 2 mask
command, MB2.
The setting of extende d st atus byte 2 bit 4 (RF Unlocked) is blocked or unblocked by the comma nds, EL0 an d EL1 (See Table 3-12).
Extended stat us byte 2 bit 7 (Para me ter Chan ged) is only used with t he Model
562 interface . The set t ing of this bit is blocked or unblocked by the commands,
II0 and II1 (See Table 3-12).
Figure 3-10.Primary and Exten ded Status Bytes
Extended
Status
Byte 2
SRQSyntax
Error
Parameter
Range
Error
Lock
ErrorRFUnleveled
End
of
Sweep
Extended
Status
Byte 1
Bit 7
(128)
Bit 6
(64)
Bit 5
(32)
Bit 4
(16)
Bit 3
(8)
Bit 2
(4)
Bit 1
(2)
Bit 0
(1)
Primary Status B yte
Not
Used
Not
Used
Not
Used
External*
Fine Loop
in Use
Not
Used
Self Test
Completed
Modulation
Range
Error
Self Test
Failed
Bit 7
(128)
Bit 6
(64)
Bit 5
(32)
Bit 4
(16)
Bit 3
(8)
Bit 2
(4)
Bit 1
(2)
Bit 0
(1)
Extended Status Byte 1
Parameter*
Changed
Calibrate
Function
Finished
Analog
Sweep
Lock Error
RF*
Unlocked
Crystal
Oven
Failure
Calibrate
Function
Failed
Modulation
Measrmnt
Complete
Power
Measrmnt
Complete
Bit 7
(128)
Bit 6
(64)
Bit 5
(32)
Bit 4
(16)
Bit 3
(8)
Bit 2
(4)
Bit 1
(2)
Bit 0
(1)
Extended Status Byte 2
67XX GPIB COMMANDSBYTE COMMANDS
681XXA PMPRELIMINARY3-27
Page 45
PROGRAMMING WITH COMPATIBLESRQ AND STATUS
67XX GPIB COMMANDSBYTE COMMANDS
Table 3-12. SRQ and Status Byte Commands (1 of 2)
MNEMONIC
CODE
ES1Enables an SRQ to be gene rated when Prim ar y Statu s Byt e bit
1 (End of Sweep) is set an d SQ 1 has be en pr ogr am me d.
ES0Inhibits an SRQ from being gener ated when the End of Sweep
bit is set. This is the def ault mode.
FB1Enables an SRQ to be generat ed when Prim ar y Statu s Byt e bit
0 (Extended Status Byte 1) is set and SQ1 ha s been
programme d. The Extend ed St at us Byt e 1 bit is set whenever
one (or more) of the unmasked sta tus rep orting f unc tion s in
Extended St at us Byt e 1 is true.
FB0Inhibits an SRQ from being generat ed when the Extended
Status Byte 1 bit is set. This is the d ef ault mo de.
LE1Enables an SRQ to be generated when Prim ary Sta tu s Byte bit
3 (Lock Error ) is set and SQ1 has b ee n pro gra mm e d .
LE0Inhibits an SRQ from being gener ated when the Lock Er ror bit
is set. This is the defa u lt mode .
MB0Sets an 8-bit data ma sk that is used to ena ble spec ific bit s of
the Primary Statu s Byt e (Figure 3-xx) . This enab les any or all
of the bits (except fo r bit 6) in the Primary Status Byte to
generate an SRQ using one 8-bit byt e. This co mma n d can be
equivalent to sending ES1, FB1, LE1, PE1, SE1, SB1, and
UL1.
FUNCTION
MB1Sets the enable mask byt e for Extended Stat us Byte 1.
MB2Sets the enable mask byt e for Extended Stat us Byte 2.
PE1Enables an SRQ to be gene rated when Prim ar y Statu s Byt e bit
4 (Parameter Range Error) is set and SQ1 has been
program med.
PE0Inhibits an SRQ from being gener ated when the Paramet er
Range Error bit is set. This is the default mode.
SB1Enables an SRQ to be gene rated when Prim ar y Statu s Byt e bit
7 (Extended Status Byte 2) is set and SQ1 ha s been
programme d. The Extend ed St at us Byt e 2 bit is set whenever
one (or more) of the unmasked sta tus rep orting f unc tion s in
Extended St at us Byt e 2 is true.
SB0Inhibits an SRQ from being gener ated when the Extended
Status Byte 2 bit is set. This is the d ef ault mo de.
3-28PRELIMINARY681XXA PM
Page 46
PROGRAMMING WITH COMPATIBLESRQ AND STATUS
MNEMONIC
CODE
FUNCTION
SE1Enables an SRQ to be genera te d when Prim ary St at us Byte
bit 5 (Syntax Error) is set and SQ 1 has been pr ogr am med.
SE0Inhibits an SRQ from being gener ated w he n the Synt ax Er ror
bit is set. Th is is t h e default mode.
SQ1Enables the SRQ generation func tion . This comm and a llows a
status reporting funct ion, that is true and enabled , to pull the
SRQ line LOW (true ) and requ est ser vice from the con troller.
SQ0Disables the SRQ generat ion funct ion. This is t he default
mode.
UL1Enables an SRQ to be generate d when Prim ary St at us Byte
bit 2 (RF Unleveled) is set and SQ1 has be en pr ogr amme d.
UL0Inhibits an SRQ from being generated whe n the RF Unleveled
bit is set. Th is is t h e default mode.
EL1Unblocks updating of th e Extende d Sta tu s Byt e 2 bit 4 (RF
Unlocked).
EL0Blocks updating of the Extended Status Byt e 2 bit 4. This is
the default se tting b e caus e it is norma l for the RF to be
momentari ly unlocke d dur ing sweep s and sweep re trace .
II1Unblocks updat ing of th e Extende d Sta tu s Byt e 2 bit 7
(Paramete r Changed) . This bit is only us ed with th e Model 56 2
interface. This bit is cleared when the 562 s ends the O CP
command (Output Last Paramet er Chang ed).
II0Disables updating of the Exten ded St atus Byt e2 bit 7. This is
the default se tting.
CSBClears all GPIB status bytes.
Table 3-12. SRQ and Status Byte Command s (2 of 2)
67XX GPIB COMMANDSBYTE COMMANDS
OUTPUT 705; "OES"
ENTER 705 USING "#, B"; A, B, C
MAIN = A
1 EXT = B
2 EXT = C
Figure 3-11. OES Command Program ming Exa mp le
681XXA PMPRELIMINARY3-29
Page 47
PROGRAMMING WITH COMPATIBLESRQ AND STATUS
67XX GPIB COMMANDSBYTE COMMANDS
The 681XX A has a software mask that perm its manipu la tion of the thr ee stat us by te s over th e bus. This man ip ulat io n is accomplished by sending the comma nd cod es MB0, MB1, MB2, or all three at once, followed by an argument that assigns an
on/off con dition for each bit in the byte. Two examples are shown be lo w:
EXTENDED STATUS BYTE 1
SELF TEST FAILED
MODULATION RANGE ERROR
SELF TEST COMPLETE
0
1
2
3
"1"
"2"
EXTERNAL FINE LOOP IN USE
MASK BYTE 1
EXAMPLE #1
1
0
0
0
1
0
0
0
EXAMPLE #2
0
1
0
0
1
0
0
0
4
5
6
7
0
1
2
3
4
5
6
7
"4"
"8"
"16"
"32"
"64"
"128"
OR
PRIMARY
STATUS
BYTE
BIT 0
EXAMPLE #1: "MB1" (CHR $(17))
Sets bits 0 and 4 in Mask Byte 1 to 1 and all other bits to 0, thus enabling bits 0 and 4 in Extended Status Byte 1 to be
read from the bit 0 position of the Prim ar y Statu s Byt e.
EXAMPLE #2: "MB1" (CHR $(18))
Sets bits 1 and 4 in Mask Byte 1 to 1 and all other bits to 0, thus enabling bits 1 and 4 in Extended Status Byte 1 to be
read from the bit 0 position of the Prim ar y Statu s Byt e.
Figure 3-12. Status Byte Mask Programming Exa mples
3-30PRELIMINARY681XXA PM
Page 48
MNEMONIC
CODE
FUNCTION
BPNSelects a –5V level for the retrace and bandswitch blanking
outputs. (T he retr ace blanking ou tp ut sig nal is available at th e
rear panel RETRACE BLANK OUT connector and pin 6 of the
AUX I/O connector; the bandswit ch blan king outpu t signal at
pin 20 of the AUX I/O connector.)
BPPSelects a +5V level for the retrace and bands witch blanking
outputs.
EP0Selects TTL-low to turn RF on during squ are wave/pu ls e
modulation.
EP1Selects TTL-high to turn RF on during s quar e wave/ pulse
modulation.
PP0Selects normally-op en con ta cts on the int ern al penlift re lay.
(The penlift relay outpu t, availab le at the rear pane l PEN LIFT
OUT connect or, is used to lift a plotter pen dur ing re trace .)
PP1Selects normally-clos ed con ta cts on the int ern al penlift re lay.
RC0Selects RF to be off during frequency swit ching in CW and
step sweep modes.
RC1Selects RF to be on during frequency switching in CW and
step sweep modes.
RT0Selects RF to be off during retrace.
RT1Selects RF to be on du ring r etrac e.
Table 3-13. Configur atio n Com ma nds
PROGRAMMING WITH COMPATIBLECONFIGURATION
67XX GPIB COMMANDSCOMMANDS
3-13
CONFIGURATION
COMMANDS
Table 3-13 lists the configuration co mmand mnemonic codes. These
commands permit selection of the follow in g system con fig uration items
via the bus:
A +5V or –5V level for the re ar pan el retrace and bandswitch
blanking outputs.
A TTL-low or TTL-high sig n al tu rn on of RF du r ing squ are
wave/pulse modu ation.
Normally-o pen or normally- clo se d contac ts on the inter nal penlif t
relay.
RF on or RF off during frequen c y switch ing in CW and step
sweep modes.
RF on or RF off during sweep retrace.
The system config uration selection s mad e with GPIB comman ds remain in effect when the ins trumen t is retur ned to local con tr ol.
681XXA PMPRELIMINARY3-31
Page 49
PROGRAMMING WITH COMPATIBLEGROUP EXECUTE
67XX GPIB COMMANDSTRIGGER COMMANDS
3-14
GROUP EXECUTE
TRIGGER COMMANDS
Table 3-14 lists the grou p execute trigger (GET) command mne mon ic
codes. These comman ds let a GET bus message (Table 1-3) be used to
trigger cer tain swee p gen er ator functions and thus speed up bus operations.
In the default state, the 681XXA respond s to a GET message by triggering a single sweep.
Table 3-14 . Group Execute Trigger Commands
MNEMONIC
CODE
GTCConfigures the 681XXA to execute an SQF command (scan to
the next higher pres et CW f req uenc y) each time a GE T
message is received .
GTDConfigures the 681XXA to execute a DN command (steps the
open paramet er down by the st ep size) each t ime a GET
message is received .
GTFConfigures the 681XXA to exe cute a fast-fr eque ncy- swit ching
step (Table 3-15) each time a GE T message is received.
GTLConfigures the 681XXA to execute a TSS command (ste ps to
the next point in a dual step sweep mode) each time a GET
message is received .
FUNCTION
GTODisables the GET functions.
GTSConfigures the 681XXA to exe cute a TRS comman d (trigger a
single sweep) each time a GET mes sage is received. This is
the defa ult m od e .
GTTConfigures the 681XXA to execute a TST com mand (exec ute
a complete signal gene rator self test) each time a GE T
message is received .
GTUConfigures the 681XXA to execute a UP command (steps the
open parameter up by the step size) each time a GE T
message is received .
YSending a “Y” is equivalent to sending a GET.
3-32PRELIMINARY681XXA PM
Page 50
MNEMONIC
CODE
FUNCTION
ZL(X
000-999
)Loads a CW frequency into the stack at location X. Th e
location is a number from 000 to 999.
ZELEnds frequency loading.
ZS(X
000-999
)Sets the stack pointer to point to location X. The locat ion is a
number from 000 t o 999.
Table 3-15. Fast-Frequency-Switching Commands
OUTPUT 705; “ZL000” . . . Set pointer for load
OUTPUT 705; “10 GH, 11 GH, 12 GH, 13 GH”
OUTPUT 705; “ZEL GTF”
NEW
OUTPUT 705; “ZS000” . . . Set pointer to start
TRIGGER 705; . . . . Sets 10 GHz
TRIGGER 705; . . . . Sets 11 GHz
TRIGGER 705; . . . . Sets 12 GHz
TRIGGER 705; . . . . Sets 13 GHz
Figure 3-13. Fast-Frequency-Switching Programming Example
PROGRAMMING WITH COMPATIBLEFAST-FREQUENCY67XX GPIB COMMANDSSWITCHING COMMANDS
3-15
FAST-FREQUENCYSWITCHING
COMMANDS
Table 3-15 lists the fast-frequency-switching command mnemonic
codes. These comman ds pr ovide for red ucin g the time that it takes to
switch betwe en two CW frequ en c ies.
In the fast-frequen cy -switc h ing mode, up to 1000 frequenc ies can be
loaded into a stack. A stack pointer can then be se t to point to a specific
frequenc y on the stack and the sweep gen er ator comman ded to switch
from that frequ enc y throu g h the follow in g s tack frequen c ies to the bottom of the stack. Figure 3-13 provides an ex ample of fast-frequ en c yswitching programming.
681XXA PMPRELIMINARY3-33
Page 51
PROGRAMMING WITH COMPATIBLEPOWER-OFFSET67XX GPIB COMMANDSTABLE COMMANDS
3-16
POWER-OFFSETTABLE COMMANDS
Table 3-16 list the power-offset-table command mnemonic codes. These
commands provide for maintain ing a consi stent pow er level at a point
within a test setup across the measureme nt frequ en cie s. This “fl attening” of the test point power level is accomplished by summing a power
offset word (from the power off set table) with the swee p generator’ s
normal power leve l DAC word at each freque ncy poin t.
The power-offset mode works in conjunction with the fast-frequencyswitchin g mode (par agr aph 3-14). The frequ en cy stack mus t be loaded
before loading the power - offset table because the frequ en cy loadin g
sets the upper limit for the number of entries in the power-o ffset table.
The same pointer is used for both the frequ en cy stack and the powe roffset table. Once the power-offset table is loaded, the PT 1 command
turns on the pow er- offset mode; the PT0 command turns it off.
Loading the
Power-Offset
Table
To load the power-o ffset table, use the comman d,
PTL clch dldh. ...., where “clch” is the number of power-
offset words and “dldh” is a power -offset word. Both
“clch” and “dldh” are two-by te binar y words se nt
LOW byte first and HI GH byte seco nd . Th e pow eroffset word is in hundr eths of a dB. Negativ e pow er
offsets use twos-complement representation.
To change a powe r -o ffset wor d in the table, use the
PTC dldh command, where “dldh” is the new power-
offset word for the cur r ent powe r lev el settin g.
Progr am min g Note:
Care must be taken to send the exact number of
power- offset wo rds spec ified in the wordco unt, “clch”.
If to few words are sent, the GPIB in terf ace may not
respond properly.
Figures 3-14 and 3-14a show an example of pow er-offset mode programming.
Table 3-16. Power-Offset-Table Commands
MNEMONIC
CODE
PT0Disable the Power Offset Table
PT1Enable the Power Offset Table
PTCChange a Power Offset Tab le entry (PTC dldh), wh ere dldh is
the new offset word for the current table entry.
PTLLoad a Power Offset Table (PTL clch dldh . ..), whe re clch is th e
data word count and dldh is the data word.
FUNCTION
3-34PRELIMINARY681XXA PM
Page 52
PROGRAMMING WITH COMPATIBLEPOWER-OFFSET67XX GPIB COMMANDSTABLE COMMANDS
The follow ing is an example of power- off se t mode prog ramm ing. This progr am is written for use w ith an IBM-PC t ype
computer /c ont ro ller cont aining an IOtec h GPIB int er fa ce.
/*************************************************************************/
/* Initialize the IOtech interface board and */
/* obtain the interface’s handle. */
/* Make a data array with the PTL command, the word count */
/* and the binary data in low-byte, high-byte order. */
DataString[0]=’P’;
DataString[1]=’T’;
DataString[2]=’L’;
DataString[3]=10; /* Low byte -- ten words */
DataString[4]=0; /* High byte -- */
DataString[5]=0; /* 0 */
DataString[6]=0;
DataString[7]=20; /* 276 */
DataString[8]=1;
DataString[9]=30; /* 542 */
DataString[10]=2;
DataString[11]=40; /* 808 */
DataString[12]=3;
DataString[13]=50; /* 1074 */
DataString[14]=4;
DataString[15]=60; /* 1340 */
DataString[16]=5;
DataString[17]=70; /* 1606 */
DataString[18]=6;
DataString[19]=80; /* 1872 */
DataString[20]=7;
DataString[21]=90; /* 2138 */
DataString[22]=8;
DataString[23]=100; /* 2404 */
DataString[24]=9;
/* Send the data with an EOI on the last byte */
SendEoi(Synth,DataString,25);
Output(Synth,"ZS000");
for(next_step=0;next_step<10;next_step++)
{
Output(Synth,"Y");
printf("Press Enter for Next Frequency");
getchar();
}
} /* End of main() */
Figure 3-14a. Power-Of fset M ode Progr am m ing Exa m ple (2 of 2)
3-36PRELIMINARY681XXA PM
Page 54
MNEMONIC
CODE
FUNCTION
TSTExecutes a sweep genera to r self te st. Exte n ded St at us Byt e 1
bit 0 is set if self tes t f ails; bit 2 is set when self test is com plete.
Table 3-17. Self Test Commands
PROGRAMMING WITH COMPATIBLESELF TEST
67XX GPIB COMMANDSCOMMANDS
3-17
SELF TEST
COMMANDS
Table 3-17 lists the self test command mnemonic codes. These co mmands provide for executin g a sweep generator self test.
When a TST command is received, the sweep gene rator perfor ms a self
test, then places a “P” (for pass) or a “F” (for fail) on the bus. It also
generates six self test results bytes. Figure 3-16 (next page) shows the
six self test results bytes and identifies the repo rtin g func tio n of each
bit.
When self test is completed, bit 7 of Self Test Results Byte 6 and bit 2
of Extended Status Byte 1 are both set. If a failure(s) occur s durin g self
test, the Self Test Results Byte bit(s) reporting the failure (s) and bit 0
of Extended Status Byte 1 are set.
The OSR command returns the six self test results bytes to the co ntr oller. Figure 3-15 provides an example of self test command programming.
Progr am min g Note: The “P or “F” characte r placed on the bus by the
sweep generator self test must be cleared from the outpu t buffe r (read
by the controller) before anoth er outpu t comman d, such as OSR, is
sent. If it is not cleared, the first ch arac ter of the next ou tp ut will be
missing. Line 30 (Fig u re 3-15) show s clearing of the “P” or “F” character.
Figure 3-15. Self Te st Com ma nd Pr ogra mmi ng Exa mple
681XXA PMPRELIMINARY3-37
10 OUTPUT 705; "CSB"
20 OUTPUT 705; "TST"
30 ENTER 705; D$
40 DISP D$
50 OUTPUT 705; "OSR"
60 ENTER 705 USING "#,B"; A, B, C, D, E, F
70 DISP A; B; C; D; E; F
80 END
Page 55
PROGRAMMING WITH COMPATIBLESELF TEST
67XX GPIB COMMANDSCOMMANDS
Self Test R esults Byte 1
Sweep Time
Circuitry Failed
Bit 7
(128)
A18 Power
Supply is Not
Locked
Bit 6
(64)
Self Test R esults Byte 2
Not Locked
Indicator
Check Failed
Bit 7
(128)
Down Converter
is
Not Locked
Bit 6
(64)
Self Test R esults Byte 3
Detector Log
Amp Circuitry
Failed
Bit 7
(128)
Level Reference
Circuitry
Failed
Bit 6
(64)
Power Supply
Voltage(s) are
Out of Reg
Bit 5
(32)
YIG Loop
Circuitry is
Not Locked
Bit 5
(32)
Not Leveled
Detector
Circuitry Failed
Bit 5
(32)
A12 –10 Volt
Reference
Check Failed
Bit 4
(16)
Coarse Loop
Circuitry is
Not Locked
Bit 4
(16)
Delta-F Ramp
Circuitry
Failed
Bit 4
(16)
A12 +10 Volt
Reference
Check Failed
Bit 3
(8)
Fine Loop
Circuitry is
Not Locked
Bit 3
(8)
Center
Frequency
Circuitry Failed
Bit 3
(8)
DVM –10 Volt
Reference
Check Failed
Bit 2
(4)
High Stability
Crystal is
Not Locked
Bit 2
(4)
Marker Switch
Point
Circuitry Failed
Bit 2
(4)
DVM +10 Volt
Reference
Check Failed
Bit 1
(2)
Ext 10 MHz
is
Not Locked
Bit 1
(2)
Linearizer
Circuitry
Failed
Bit 1
(2)
DVM Ground
Offset Check
Failed
Bit 0
(1)
Oven
is
Not Ready
Bit 0
(1)
FM Loop
Gain
Circuitry Failed
Bit 0
(1)
Self Test R esults Byte 4
3.3 - 5.5 GHz
Switch Filter
Section or
Level Detector
Circuitry Failed
Bit 7
(128)
2-3.3 GHz
Switch Filter
Section or
Level Detector
Circuitry Failed
Bit 6
(64)
Self Test R esults Byte 5
33 - 40 GHz
Section of
Frequency
Extension Unit
Failed
Bit 7
(128)
Frequency
Extension Unit
or Driver
Circuitry Failed
Bit 6
(64)
Self Test R esults Byte 6
Self Test
is
Complete
Bit 7
(128)
Not UsedNot UsedRF Was Off
Bit 6
(64)
Switch Filter
or
Level Detector
Circuitry Failed
Bit 5
(32)
20 - 26.5 GHz
Modulator or
Driver Circuitry
On A14 Failed
Bit 5
(32)
Bit 5
(32)
0.01 - 2 GHz
Range
Unleveled
Bit 4
(16)
26.5 - 40 GHz
Modulator or
Driver Circuitry
on A14 Failed
Bit 4
(16)
When Self Test
Started
Bit 4
(16)
A10 Q5 or
Associated
Circuitry Failed
Bit 3
(8)
Modulator or
Driver Circuitry
on A9 Failed
Bit 3
(8)
Slope DAC or
Associated
Circuitry Failed
Bit 3
(8)
2 - 8.4 GHz
Range
Unleveled and
Not Locked
Bit 2
(4)
13.25 - 20 GHz
Switch Filter
Section or
Level Detector
Circuitry Failed
Bit 2
(4)
Sample and
Hold Circuitry
Failed
Bit 2
(4)
8.4 - 20 GHz
Range
Unleveled and
Not Locked
Bit 1
(2)
8.4 - 13.25 GHz
Switch Filter
Section or
Level Detector
Circuitry Failed
Bit 1
(2)
20 - 26.5 GHz
Section of
Frequency
Extension Unit
Failed
Bit 1
(2)
2 - 20 GHz
Range
Unleveled and
Not Locked
Bit 0
(1)
5.5 - 8.4 GHz
Switch Filter
Section or
Level Detector
Circuitry Failed
Bit 0
(1)
26.5 - 33 GHz
Section of
Frequency
Extension Unit
Failed
Bit 0
(1)
Figure 3-16. Self Te st Res ul ts Bytes
3-38PRELIMINARY681XXA PM
Page 56
MNEMONIC
CODE
FUNCTION
CS0Turns off the C W ram p.
CS1Tur ns on the C W ramp. This produces a repetitive 0V to 10 V
ramp output to the rea r panel HORI Z OU T con nect or and pin 1
of the AUX I/O connector.
DS0Tur ns on the se cur e mode. This blank s the fron t p anel disp lay
of all frequency, power level, and modulat io n par am eters .
DS1Turns of f the secur e mode and restores the fro nt panel display
of all frequency, power level, and modulat io n par am eters .
RLReturns the 681XXA to local (front panel) control.
RSTResets the 681XXA to its default settings.
NOTE
Sending this command clea rs the cu rrent inst rumen t
setup. If this set up is need ed for fut ur e testin g, save it
as a stored setup (p ara gra ph 3- 11) befor e send in g
RST.
SNRPermits entry of the instrumen t serial num ber (SNRnn nnnn X).
The serial numb er, represente d by nnn nnn, must be six
characters in length.
Table 3-18. Miscellaneo us Com m an ds
PROGRAMMING WITH COMPATIBLEMISCELLANEOUS
67XX GPIB COMMANDSCOMMANDS
3-18
MISCELLANEOUS
COMMANDS
Table 3-18 is a list of miscellaneous command mnemonic codes th at do
not fit into any of the other classification s. Th ese comman ds prov ide
the following oper atio ns:
CW Ramp
Secure Mode
Returning the 681XXA to local control
Instrument Reset
Serial Number Entry
681XXA PMPRELIMINARY3-39
Page 57
PROGRAMMING WITH COMPATIBLEPROGRAM
67XX GPIB COMMANDSERRORS
3-19
PROGRAM ERRORS
Two types of errors can occur in bus programmin g —in v alid-p arame ter
and syntax. These two er ror typ es are described in the following paragraphs.
InvalidParame te r
SyntaxSyntax errors are those that occur in the formula-
Invalid-par ameter error s are those that cause the
sweep generator to beep. These errors include:
Programming a frequency swee p wher e the
sweep start frequenc y is greater than the stop
frequency.
Attempting to enter a frequency, time, or power
level parameter that exceeds the limits of the
sweep generator.
Failing to proper ly end a parameter entry with
a suitable terminator such as MH, DB, MS, etc.
tion of a program statement, such as writing
"EXTTFS" instead of "EXTTRS".
To prevent misinterpretation of command statements, the sweep gen er ator igno re s all portions of
the command statement following the syntax err or.
All commands are ignored until the sweep g ener a tor
receives the Unlisten co mmand (ASCII 63; “?” character) over the bus or until the swe ep gene rator i s addressed to talk.
3-40PRELIMINARY681XXA PM
Page 58
PROGRAMMING WITH COMPATIBLERESET PROGRAMMING
67XX GPIB COMMANDSAND DEFAULT CONDITIONS
3-20
RESET PROGRAMMING AND DEFAULT
CONDITION S
Table 3-19 describes the five methods that can be used to reset the
sweep generator. They prov ide a means for quic kly re tur ning the
sweep generator to its default (pr epr ogr ammed) ope ration al state.
The default settings for the numeric frequency, sweep time, and power
level parameters are the same as those listed in T able 3-1 on page 3-14
of the Series 681X XA Synthesize d Sweep Generator Operation Manual
(P/N 10370-10250).
Figure 3-17 (next pag e) prov ides an example of a recommen de d sequence for programmin g a reset command. Using this comman d sequence ensur es that all parameter s and comman ds a ssume their pr eprogrammed state each time reset is desired.
Table 3- 19. Resetting the 681XXA GPIB Interface Circuits
Methods of Resetting
GPIB Inte rface Ci rc ui ts
1. Pressing the front panel
menu RETURN TO LOCAL soft-key.
2. Pressing the front panel
System me nu RESET
soft-ke y.
Functio ns
Affected
Bus MessagesLocal
Service Request ModesES0, FB0, PE0, SB0,
SE0, SQ0, UL 0, SB0
GTS
Local and Local Lockout
Default
Conditions
3. Sending the RST command over the bus.
4. Executing the int er face
message Device Clear.
5. Turning p ower on and
off.
Same as 2 aboveSame as 2 above except
that the local bus
message is not res et .
Same as 2 above.Same as 2 ab ove ex cept
that the local bus
message is not res et .
Same as 2 above.Places the GPIB into the
power-on state.
Instrument state does not
change.
681XXA PMPRELIMINARY3-41
Page 59
PROGRAMMING WITH COMPATIBLEPROGRAMMING
67XX GPIB COMMANDSEXAMPLES
Sample Codin g In Basic
10 CLEAR 705
20 OUTPUT 705; "FUL IL1 L1 10DM"
Explanation of Code
Line 10 sends the Device Clear bus mess age. Th is message cle ars the sweep generator GPIB interface.
Line 20 sends new front panel sett ings: Full Sweep, Inte rna l Leveling, and Outpu t
Power Level of 10 dBm.
Figure 3-17.Reset Progr am m ing Exampl e
3-21
PROGRAMMING
EXAMPLES
Figures 3-18 thru 3-20, on the following pages, provide three examples
of GPIB programmin g of the sweep gen er ator usin g comp atible
WILTRON Model 67XX Synthesizer GPIB commands.
3-42PRELIMINARY681XXA PM
Page 60
PROGRAMMING WITH COMPATIBLEPROGRAMMING
67XX GPIB COMMANDSEXAMPLES
The following subroutine uses the output identify (OI) comm and to identify the
sweep generator’s model numbe r, serial number, minimum and maxim um freque ncies, minimum and maximum power level, and so ftware revision level. This subroutine is used in the examp le prog ram s in Figures 3- 19 an d 3-2 0 to read the limits of
the sweep generator.
10 ! "GET OI"
20 ! Gets the output id string
30 ! from a 68XXXX Sweep Generator
100 OUTPUT 705; "OI"
110 DIM A$[36]
120 ENTER 705; A$
130 M$=A$[1,2] ! Model
140 M1$=A$[3,4] ! Model Number
150 F1$=A$[5,9] ! Freq Low
160 F2$=A$[10,14] ! Freq High
170 L2$=A$[15,20] ! Min Power
180 L1$=A$[21,24] ! Max Power
190 S$=A$[25,28] ! Software Ver
200 S1$=A$[29,34] ! Serial Number
210 P$=A$[35,35] ! Model Prefix
220 S2$=A$[36] ! Series
230 PRINT "Model Number :";M$;S2$;M1$;P$
240 PRINT "Serial Number :";S1$
250 PRINT "Low Freq :";F1$
260 PRINT "High Freq :";F2$
270 PRINT "Max Power :";L1$
280 PRINT "Min Power :";L2$
290 PRINT "Software Ver :";S$
300 END
Program Expla nat io n
Line 100:
Line 110:
Line 120:
Line 130:
Line 140:
Line 150:
Line 160:
Line 170:
Line 180:
Line 190:
Line 200:
Line 210:
Line 220:
Lines 230-290:
Figure 3-18. Using the Output Identify (OI) Comm an d
Sends the "OI" comma n d.
Dimensions the variable.
Gets the "OI" string.
Sets M$ to the model (68).
Sets M1$ to the model number.
Sets F1$ to the sweep generat or low-end freque ncy.
Sets F2$ to the sweep generat or high-e nd f req uenc y.
Sets L2$ to the minimum power point.
Sets L1$ to the maximu m power p o int.
Sets S$ to the software version nu mb er.
Sets S1$ to the serial number.
Sets P$ to the model prefix number (1 or 2).
Sets S2$ to the model series (A or B).
Prints the data obtained.
681XXA PMPRELIMINARY3-43
Page 61
PROGRAMMING WITH COMPATIBLEPROGRAMMING
67XX GPIB COMMANDSEXAMPLES
The following program (1) rec eives en tries from the key boar d to set intial frequency
and step-siz e param et ers , an d (2) activates the soft keys on the con troller so tha t
they can step the f req uenc y up or down.
20 ! PARAMETER ENTRY, SYZ, UP, AND DN COMMANDS
30 Address=705
40 CALL Iddev(Address,Model,Fmin,Fmax,Pmin,Pmax)
50 OFF KEY
Program Explanation
Line 30:
sweep generat or.
Line 40:
subrout ine des cribe d in Line 1010 .
Line 50:
Lines 60-110:
quency entry and che cks it s validity.
Lines 120-170:
entry and checks its val idity.
Line 180:
to the startin g frequ ency and step
size.
Lines 190-240:
labels.
Line 250:
pressed.
Line 300:
key was pressed; send s the UP co mmand.
Line 310:
Line 320:
DOWN key wa s pressed ; send t he
DN command.
Line 330:
Line 340:
Lines 1010-1120 :
generator address, model, frequency
range, and power range.
Sets the address of the
Calls the device identification
Turns of f t he key definitions.
Accept the starting fre-
Accept the step size
Sets the sweep generator
Set up keys and key
Waits for a key to be
Reports that the STEP UP
Waits for the next key.
Reports that the STEP
Waits for the next key.
Ends the main progr am.
Identify the sweep
60 DISP "ENTER FREQUENCY IN GHz";
70 INPUT Freq
80 IF Freq>Fmax OR Freq<Fmin THEN
90 DISP "FREQUENCY OUT OF RANGE - ";
100 GOTO 60
110 END IF
120 DISP "ENTER STEP SIZE IN GHz";
130 INPUT Stepsize
140 IF Stepsize>Fmax-Fmin OR Stepsize<.000001 THEN
150 DISP "ILLEGAL STEP SIZE - ";
160 GOTO 120
170 END IF
180 OUTPUT Address;"CF1";Freq;"GH SYZ";Stepsize;"GH"
190 ON KEY 0 LABEL "STEP" GOTO 300
200 ON KEY 5 LABEL " UP " GOTO 300
210 ON KEY 1 LABEL "STEP" GOTO 320
220 ON KEY 6 LABEL "DOWN" GOTO 320
230 ON KEY 2 LABEL "NEW " GOTO 50
240 ON KEY 7 LABEL "FREQ" GOTO 50
250 GOTO 250
300 OUTPUT Address;"UP"
310 GOTO 250
320 OUTPUT Address;"DN"
330 GOTO 250
340 END
1010 SUB Iddev(Address,Model,Fmin,Fmax,Pmin,Pmax)
1020 DIM Ident$[36]
1030 OUTPUT Address;"OI"
1040 ENTER Address;Ident$
1050 Model=VAL(Ident$[1,2])
1060 Model Number=VAL(Ident$[3,4])
1070 Fmin=VAL(Ident$[5,9])
1080 Fmax=VAL(Ident$[10,14])
1090 Pmin=VAL(Ident$[15,20])
1100 Pmax=VAL(Ident$[21,24])
1110 Model Prefix=Ident$[35,35]
1120 Series=VAL(Ident$[36])
1130 SUBEND
Figure 3-19. Controlling CW Frequency /Par am e ter Entrie s
3-44PRELIMINARY681XXA PM
Page 62
PROGRAMMING WITH COMPATIBLEPROGRAMMING
67XX GPIB COMMANDSEXAMPLES
The following program accept s user input s for (1) power swe ep star ting and end ing
levels, (2) number of steps in t he s weep, an d (3) swe ep dw e ll time s. After acc ept ing
such imputs, the progr am th en comm and s the sweep generat or to obtain a display
of the power sweep .
NOTE: The swe ep gen era tor sho uld be con nect ed to a scalar net wor k ana lyzer.
30 Address=705
40 CALL Iddev(Address,Model,Fmin,Fmax,Pmin,Pmax)
60 DISP "ENTER POWER SWEEP STARTING LEVEL (dBm)";
70 INPUT Powerstart
80 IF Powerstart>Pmax OR Powerstart<Pmin THEN
Program Explanation
Line 30:
sweep generat or.
Line 40:
subrout ine des cribe d in line 1010.
Lines 60-110:
power level ent ry and checks its val idity.
Lines 120-170:
power level ent ry and checks its val idity.
Lines 180-230:
sweep number-of -s teps ent r y and
checks it validity.
Lines 240-290:
sweep dwell time entry and check s
its validity.
Lines 300-310:
ator to perform the abov e defined
power sweep.
Line 340:
Lines 1010-1120 :
generator address, model, frequency
range, and power range.
Set the address of the
Call the device identification
Accept the starting
Accept the en ding
Accept the power
Accept the power
Sets the sweep gener-
Ends the main program.
Identify the sweep
90 DISP "POWER OUT OF RANGE - ";
100 GOTO 60
110 ENDIF
120 DISP "ENTER POWER SWEEP ENDING LEVEL (dBm)";
130 INPUT Powerstop
140 IF Powerstop>Pmax OR Powerstop<Pmin THEN
150 DISP "POWER OUT OF RANGE - ";
160 GOTO 120
170 END IF
180 DISP "ENTER NUMBER OF STEPS";
190 INPUT Noofsteps
200 IF Noofsteps<1 OR Noofsteps>1000 THEN
210 DISP "NUMBER OF STEPS OUT OF RANGE - ";
220 GOTO 180
230 END IF
240 DISP "ENTER DWELL TIME AT EACH STEP (mS)";
250 INPUT Dwell
260 IF Dwell<100 OR Dwell>10000 THEN
270 DISP "DWELL TIME OUT OF RANGE - ";
280 GOTO 240
290 END IF
300 OUTPUT Address;"L1";Powerstart:"DM L2";Powerstop;
"DM PNS";Noofsteps;"SPS"
310 OUTPUT Address;"PDT";Dwell;"MS LSP"
340 END
1010 SUB Iddev(Address,Model,Fmin,Fmax,Pmin,Pmax)
1020 DIM Ident$[36]
1030 OUTPUT Address;"OI"
1040 ENTER Address;Ident$
1050 Model=VAL(Ident$[1,2])
1060 Model Number=VAL(Ident$[3,4])
1070 Fmin=VAL(Ident$[5,9])
1080 Fmax=VAL(Ident$[10,14])
1090 Pmin=VAL(Ident$[15,20])
1100 Pmax=VAL(Ident$[21,24])
1110 Model Prefix=Ident$[35,35]
1120 Series=VAL(Ident$[36])
1130 SUBEND
Figure 3-20. Controlling Pow er Level and Powe r Sw e ep
681XXA PMPRELIMINARY3-45/3-46
Page 63
Appendix A
SCPI
Conformance Information
– SCPI Conforma nce Info rmati o n wil l be suppl ied at a l ater date. –
681XXA PMPRELIMINARYA-1
Page 64
Appendix B
Index of Compatible 67XX
GPIB C ommands
B-1
INTRODUCTION
This appendix provides an alphabetical index of the WILTRON Model
67XX GPIB Product Specific Commands accepted and implemented
by the 681XXA. The index lists the command mnemonic code, a brief
description of the command function, and the page number in Chapter 3 where a complete description of the command can be found.
Compatible 67XX GPIB Commands (1 of 8)
Command
Code
ACWActivates currently scanned frequency as CW3-10
AD1
AD5
AD6
AF1Selects F1-F2 alternate sweep3-12
AF3Selects F3-F4 alternate sweep3-12
AFUSelects Full Range alternate sweep3-12
AM0Turns off the external AM function3-18
AM1Turns on the external AM function in Linear mode3 -18
AM2Turn on the external AM function in Log mode3-18
AUTSelects Auto sweep trigger3-12
BPNSelects –5V for retrace and bandswitch blanking outputs3-31
BPPSelects +5V for retrace and bandswitch blanking outputs3-31
CF0Set CW mode at F0, Opens F0 parameter3-10
CF1Set CW mode at F1, Opens F1 parameter3-10
CF2Set CW mode at F2, Opens F2 parameter3-10
CF3Set CW mode at F3, Opens F3 parameter3-10
CF4Set CW mode at F4, Opens F4 parameter3-10
CF5Set CW mode at F5, Opens F5 parameter3-10
CF6Set CW mode at F6, Opens F6 parameter3-10
CF7Set CW mode at F7, Opens F7 parameter3-10
CF8Set CW mode at F8, Opens F8 parameter3-10
CF9Set CW mode at F9, Opens F9 parameter3-10
CLOCloses the open parameter3 -6
CLRClears data entry3-8
CM0Set CW mode at M0, Opens M0 parameter3-10
CM1Set CW mode at M1, Opens M1 parameter3-10
CM2Set CW mode at M2, Opens M2 parameter3-10
CM3Set CW mode at M3, Opens M3 parameter3-10
CM4Set CW mode at M4, Opens M4 parameter3-10
CM5Set CW mode at M5, Opens M5 parameter3-10
CM6Set CW mode at M6, Opens M6 parameter3-10
CM7Set CW mode at M7, Opens M7 parameter3-10
CM8Set CW mode at M8, Opens M8 parameter3-10
CM9Set CW mode at M9, Opens M9 parameter3-10
CSOTurns off the CW ramp3-39
CS1Turns on the CW ramp3-39
CSBClears all GPIB status bytes3-29
DBdB data terminator3-8
DF0
DF1
DF5
DF6
DFF
DFM
DL1Selects external detector leveling of the output power3-20
DLF
DMdBm data terminator3-8
DNDecrements the open parameter by the step size3-8
DS0
DS1
DU0Deselects Dual Step sweep mode3-13
DU1Selects Dual Step sweep mode on3-13
EG1Enter value for external level gain DAC directly3-21
EGOOutput value of external level gain DAC3-21
EL0Inhibits updating of the ESB2 bit 4 (RF Unlocked)3-29
EL1Enables updating of the ESB2 bit 4 (RF Unlocked)3-29
EP0External pulse input; TTL high is RF off3-31
EP1External pulse input; TTL high is RF on3-31
ES0Inhibits End-of-Sweep SRQ generation3-28
Selects the F0-∆F sweep mode
Selects the F1-∆F sweep mode
Selects the F5-∆F sweep mode
Selects the F6-∆F sweep mode
Opens the ∆F parameter (Same as DLF)
Opens the ∆F parameter (Same as DLF)
Opens the ∆F parameter
Tur ns on the sec ure mode ( B lanks th e front pa nel display
of Frequency, Power Level, and Modulation parameters)
Turns off the secure mode and restores front panel
display of all parameters
Function
Page
Number
3-11
3-11
3-11
3-11
3-7
3-7
3-7
3-39
3-39
B-2PRELIMINARY681XXA PM
Page 66
Command
Code
Function
Page
Number
ES1Enables End-of-Sweep SRQ generation3-28
EXTSelects single sweep trigger3-12
F0Opens the F0 parameter3-7
F1Opens the F1 parameter3-7
F2Opens the F2 parameter3-7
F3Opens the F3 parameter3-7
F4Opens the F4 parameter3-7
F5Opens the F5 parameter3-7
F6Opens the F6 parameter3-7
F7Opens the F7 parameter3-7
F8Opens the F8 parameter3-7
F9Opens the F9 parameter3-7
FB0Inhibits Extended Status Byte 1 SRQ generation3-28
FB1Enables Extended Status Byte 1 SRQ generation3-28
FM0Turns off the external FM function3-18
FM1Turns on the external FM funtion in Narrow mode3-18
FMSOpens the FM sensitivity parameter3-18
FMUTurns on the external FM function (Same as FM1)3-18
FMWTurns on the external FM function in Wide mode3-18
FULSelects the Full Range sweep mode3-11
GHGHz data terminator3-8
GTC
Scans to the next higher preset CW frequency on a GET
(Executes a “SQF” command)
3-32
GTD
Steps the open parameter down by the step size on a
GET (Executes a “DN” command)
3-32
GTF
Executes a Fast-frequ ency-swit ching step on a GE T (Se e
“ZL, ZEL” commands)
3-32
GTL
Steps to the next point in a dual step sweep mode on a
GET (Executes a “TSS” command)
3-32
GTODisables the GET functions3-32
GTS
Triggers a single sweep on a GET (Executes a “TRS”
command
3-32
GTT
Executes a complete sweep gen era tor self test on a GET
(Executes a “TST” command)
3-32
GTU
Steps the open parameter up by the setp size on a GET
(Executes an “UP” command)
3-32
GVGHz per volt (GHz/V) data terminator3-8
HZHz data terminator3-8
II0Enables updating of the ESB2 bit 7 (Paramet er Changed)3-29
II1Inhibits updating of the ESB2 bit 7 (Parameter Changed)3-29
Compatible 67XX GPIB Commands (3 of 8)
INDEX OF COMPATIBLE
67XX GPIB COMMANDS
681XXA PMPRELIMINARYB-3
Page 67
INDEX OF COMPATIBLE
67XX GPIB COMMANDS
Compatible 67XX GPIB Commands (4 of 8)
Command
Code
IL1Selects internal leveling of the output power3-20
IM1Turns on the Intensity marker mode3-16
KHkHz data terminator3-8
KVkHz per volt (kHz/V) data terminator3-8
L1Selects the L1 power level value as the RF output power3-20
L2Selects the L2 power level value as the RF output power3-20
LE0Inhibits Lock Error SRQ generation3-28
LE1Enables Lock Error SRQ generation3-28
LOSOpens the level offset parameter3-7
LO0Turns off the Level Offset function3-20
LO1Turns on the Level Offset function3-20
LSPSelects the Power Sweep mode3-21
LV0Turns off leveling of the output power3-21
M0Opens the M0 parameter3-7
M1Opens the M1 parameter3-7
M2Opens the M2 parameter3-7
M3Opens the M3 parameter3-7
M4Opens the M4 parameter3-7
M5Opens the M5 parameter3-7
M6Opens the M6 parameter3-7
M7Opens the M7 parameter3-7
M8Opens the M8 parameter3-7
M9Opens the M9 parameter3-7
MANSelects manual (step) sweep3-14
MB0Sets the enable mask byte for the Primary Status Byte3-28
MB1Sets the enable mask byte for Extended Status Byte 13-28
MB2Sets the enable mask byte for Extended Status Byte 23-28
ME0Disables the marker at the active frequency3-16
ME1Enables a marker at the active frequency3-16
MHMHz data terminator3-8
MK0Turns off ma rke rs3-16
MSMilliseconds (ms) data terminator3-8
MVMHz per volt (MHz/V) data terminator3-8
ODF
OEMOutputs the Extended SRQ Mask bytes (3 binary bytes)3-23
OESOutputs all three GPIB status bytes3-23
OF0Outputs the F0 frequency value in MHz3-22
Output s the ∆F frequency value in MHz
Function
Page
Number
3-23
B-4PRELIMINARY681XXA PM
Page 68
Compatible 67XX GPIB Commands (5 of 8)
INDEX OF COMPATIBLE
67XX GPIB COMMANDS
Command
Code
OF1Outputs the F1 frequency value in MHz3-22
OF2Outputs the F2 frequency value in MHz3-22
OF3Outputs the F3 frequency value in MHz3-22
OF4Outputs the F4 frequency value in MHz3-22
OF5Outputs the F5 frequency value in MHz3-22
OF6Outputs the F6 frequency value in MHz3-22
OF7Outputs the F7 frequency value in MHz3-22
OF8Outputs the F8 frequency value in MHz3-22
OF9Outputs the F9 frequency value in MHz3-22
OFHOutputs the high-end frequency value in MHz3-22
OFLOutputs the low-end frequency value in MHz3-22
OIOutputs the instrument identification string3-22
OLOOutputs the Level Offset power level in dB3-23
OL1Outputs the L1 power level value in dBm3-23
OL2Outputs the L2 power level value in dBm3-23
OM0Outputs the M0 frequency value in MHz3-22
OM1Outputs the M1 frequency value in MHz3-22
OM2Outputs the M2 frequency value in MHz3-22
OM3Outputs the M3 frequency value in MHz3-22
OM4Outputs the M4 frequency value in MHz3-23
OM5Outputs the M5 frequency value in MHz3-23
OM6Outputs the M6 frequency value in MHz3-23
OM7Outputs the M7 frequency value in MHz3-23
OM8Outputs the M8 frequency value in MHz3-23
OM9Outputs the M9 frequency value in MHz3-23
OPDOutputs the power sweep dwell time in ms3-23
OPSOutputs the power sweep number of steps3-23
OSBOutputs the Primary Status Byte (1 binary byte)3-23
OSDOutputs the step sweep dwell time in ms3-23
OSEOutputs the last GPIB syntax error3-23
OSMOutputs the primary SRQ Mask byte (1 binary byte)3-24
OSROutputs the self-test results (6 binary bytes)3-24
OSSOutputs the step sweep number of steps3-23
OSTOutputs the sweep time value in ms3-23
OVNOutputs the ROM version number string3-23
P0Turns off the square wave/pulse modulation mode3-19
Function
Page
Number
681XXA PMPRELIMINARYB-5
Page 69
INDEX OF COMPATIBLE
67XX GPIB COMMANDS
Compatible 67XX GPIB Commands (6 of 8)
Command
Code
PCVPercent per volt (%/V) data terminator3-8
PDTOpens the power sweep dwell time parameter3-7
PE0Inhibits Parameter Range Error SRQ generation3-28
PE1Enables Parameter Range Error SRQ generation3-28
PL1Selects external power meter leveling of the output power3-21
PNSOpens the power sweep number of steps parameter3-7
PP0Selects normally-open contacts on the pen lift relay3-31
PP1Selects normally-closed contacts on the pen lift relay3-31
PT0Disables the Power Offset Table3-34
PT1Enables the Power Offset Table3-34
PTCChanges a Power Offset Table entry3-34
PTLLoads a Power Offset Table3-34
RC0
RC1
RCF
RCM
RF0Turns off the RF output3-20
RF1Turns on the RF output3-20
RLReturns the instrument to local control3-39
RSN(M
RSSReset a sweep if in progress3-13
RSTResets the instrument to its default settings3-39
RT0Selects RF to be off during retrace3-31
RT1Selects RF to be on during retrace3-31
SAFOutputs the current instrument setup to the controller3-24
SAM
SB0Inhibits Extended Status Byte 2 SRQ generation3-28
SB1Enables Extended Status Byte 2 SRQ generation3-28
SDTOpens the step sweep dwell time parameter3-7
SE0Inhibits Syntax Error SRQ generation3-29
SE1Enables Syntax Error SRQ generation3-29
SECSeconds data terminator3-8
SF1Selects the F1-F2 sweep mode3-11
Selects RF off during frequency switching in CW or step
sweep modes
Selects RF on during frequency switching in CW or step
sweep modes
Readies the 681XXA to receive a new instrument setup
from the controller
Readies the 681XXA to receive a new instrument setup
and new stored setups from the controller
Recalls an instrument setup stored in internal setup
)
1 - 9
memory location M, where M = 1 to 9.
Outputs the current instrument setup and all stored
setups to the controller
Function
Page
Number
3-31
3-31
3-24
3-24
3-24
3-24
B-6PRELIMINARY681XXA PM
Page 70
Compatible 67XX GPIB Commands (7 of 8)
INDEX OF COMPATIBLE
67XX GPIB COMMANDS
Command
Code
SF3Selects the F3-F4 sweep mode3-11
SMRecalls the next stored instrument setup in sequence3-25
SNREnter the instrument serial number (SNRnnnnnnX)3-39
SNSOpens the step sweep number of steps parameter3-7
SPSSteps data terminator3-8
SP0Deselects non-equally spaced step sweep3-16
SP1Selects non-equally spaced step sweep3-16
SQ0Disables the SRQ generation function3-29
SQ1Enables the SRQ generation function3-29
SQDScan down to next lower preset CW frequency3-10
SQFScan to next higher preset CW frequency3-10
SQPTurns on internal square wave modulation at 1 kHz3-18
SQUScan up to next higher preset CW frequency3-10
SSN(M
SSPSelects step sweep3-14
SW0
SW1Turns on internal square wave modulation at 400 Hz3-18
SW2
SW3Turns on internal square wave modulation at 7.8125 kHz3-18
SW4Turns on internal square wave modulation at 27.8 kHz 3-18
SWPSelects analog sweep3-14
SWTOpens the analog sweep time parameter3-7
SYZOpens the increment/decrement size parameter3-9
TRGTriggers a single sweep3-13
TRSTriggers a single sweep3-13
TSSAdvances sweep to next step in dual step sweep mode3-13