Text preview for : 494p_prg_sm.pdf part of Tektronix 494p prg sm Tektronix 494ap 494p_prg_sm.pdf



Back to : 494p_prg_sm.pdf | Home

PROGRAMMERS Part No. 070-5559
TEKMANUAL pdut .Goup 26 '01




494AP
SPECTRUM ANALYZER




iexErvnix
1 " r1MMlri[IiIriikAI ;I1"Vr r
494AP Programmers



PREFACE
This manual is one of a set of product manuals for Change/History Information
the TEKTRONIX 494AP Programmable Spectrum
Analyzer. This manual describes the programmable func
Any change information that involves manual correc-
tions of the spectrum analyzer and how to use them for
tions or additional information is located behind the
remote operation. The manual organization is shown in
tabbed Change Information page at the back of this
the Table of Contents . The manuals that are available
manual .
now in addition to this Programmers Manual are the
History information, as well as the updated data, is
494A/494AP Operators Manual (standard acces- combined within this manual when the page(s) is revised.
sory), A revised page is identified by a revision date located in
0 494A/494AP Service Manuals, Volume 1 and 2 the lower inside corner of the page .
(optional accessories),
494A/494AP Operators Handbook (optional acces-
Unpacking and Initial Inspection
sory), and
i 494AP/495 Option 45 Programmers Reference Instructions for unpacking and preparing the instru-
Guide ment for use are described in Section 3 of the Operators
For manual ordering information, contact your local Manual .
Tektronix Field Office or representative or refer to the
Accessories portion of the Replaceable Mechanical Parts
list in the Service Manual, Volume 2. Storage and Repackaging


Instructions for short- and long-term storage and
Standards and Conventions Used instrument repackaging for shipment are described in
Section 3 of the Operators Manual .
Most terminology is consistent with standards
adapted by IEEE and IEC . A glossary of terms is pro-
vided in Appendix A. Abbreviations in the documentation
are consistent with ANSI Y1 .1-1972. GPIB functions con-
form to the IEEE 488-1978 Standard and the Tektronix
Interface Standard for GPIB Codes, Formats, Conven-
tions, and Features . Copies of ANSI and IEEE standards
can be ordered from the Institute of Electrical and Elec-
tronic Engineers Inc. Contact your local Tektronix Field
Office or representative if you have questions regarding
the Tektronix reference document .
494AP Programmers



TABLE OF CONTENTS

Page Page
Section 2 (continued)
PREFACE . . . . .. .. . . . .... . . .. .. .. . .. ... .. . . . .. .. . . . ..... .. . .. .. . . . .... . .. .. .. . .. .. .1 End Block. . . . .. ... . . . . .... . . . ..... . . . . .... . . .. .. . . . ..2-4
Binary Block..... . . . ..... . . ... ... . . . .... . . . .. .. .. .. .2-4
TABLE OF CONTENTS . . . .... .. . . . .. . .. . . ... .. .. . ..... .. .... . .. ..... ..... iii Query Format .. . . . . .... . . . ... .. . . . ... .. . . ... . . .... . 2-4
Query Response Format . . . . .. . . . . . ... . . ... . . 2-4
LIST OF ILLUSTRATIONS... ... . . . . . .. . . ... .... . . .... .. ..... .. ..... .... vii Spectrum Analyzer Output Messages ... . .2-5
Output Message Format .. ... . . . .. .. .. .... . . .2-5
LIST OF TABLES . . . . ... . . . .. . ... . . . . . ... . . . . .... . . . . .... . . .. . . . . .... .. . ....VII Output Message Execution . . . . .... . . .. .. . . .2-5
Spectrum Analyzer Compatibility... . .... . . . . .2-5
SAFETY SUMMARY . . ..... . .. .. .. . . . . . . .. . . . .. .... . . .... .. ..... .. . .... ...viii GPIB .. . . . .. . . . . . ... .. . . . . .. .. . . . ... .. . .. . .... . .... . . . . .2-5
DEGAUS Command . . . . ... . . . . .. .. .. . . .... . .. . .2-5
Section 1 INTRODUCTION TO GPIB OPERATION IDENT Command ... . . . . ... . . . . . .... .. . . .. .. . .. .. 2-5
GPIB Pushbutton and Indicators .... . . . .... . .1-1 Readout Maximum . . . .. ... . . . .. ... . . . .. .. .. ..... 2-5
RESET TO LOCAL/REMOTE ..... . . ..... ..1-1 Service Requests . . . . . . ... . . . . .. ... . . . .... . . .. .. . 2-5
PLOT... . ..... . . .. . . . .. .. .. . ..1-2 Affect of Busy on Device-
SRO .. ..... . . ... . . . .... .. ...1-2 Dependent Messages . . .. .. .. . . .. ... . . .. .. . . . . 2-5
ADDRESSED . . . . .. . .. . .... . .. .... . . . .. . . . . ... . . . .. . 1-2 GET (Group Execute Trigger) ... .. . .... . . ..2-6
GPIB Function Readout .. .. . . .. . . . .. .. . . . ... . 1-2 Reference Level . .. ... . . . .. ... . . . . .... . . . . . .. . . ... 2-6
Setting the GPIB ADDRESS Switches 1-2 RDOUT Command . . . . ..... . . . . .. ... . . . . . . . . . ...2-6
Setting the LF OR EOI Switch . ..... . . .... . 1-3 Compatibility-Only Commands . . .. . . . . ... .2-6
Setting the TALK ONLY and LISTEN
ONLY Switches . .. .. . . . ..... .. . .. .. .. .... . . .... .. .1-4 Section 3 GETTING STARTED
IEEE 488 Functions . .. . . . .... . .. ..... .... .. . .... . . . .1-4 Notes on the Program Examples . . ... . . .3-1
Source Handshake (SHi) .. .. . .... . . ..... . . .. 1-4 Setting and Querying
Acceptor Handshake (AH1) . . ... . . . .. .. . . ... 1-5 Programmable Controls . . . .. ... . . . . . ... . . .. .. . ,3-1
Talker (T5) . . . . . .. .. .. . .... . . . . .... . . .. .. . . . ... .. . . ... 1-5 Setting Programmable Controls . . .. . . .. .. 3-1
Listener (L3) . .... . .. ..... . . . . .... . . .... .. .... . . . ... . 1-5 Querying Programmable Controls. . ..... 3-3
Service Request (SR1) . . .. . . .... . .. .. .. . .. . .. . 1-5 Exercise Routines .. ..... . .. .. .. . . . . .. . . . . . .... . .... .3-3
Remote/Local (RL1) . . .... . . . . .... ..... .. . .... . .1-5 Talk/Listen ... . . . ... .... . .... . .. . .. ... . . . .. .. .. ..... .3-3
Parallel Pall (PP1) . . . . . .... . . . ..... ..... . . .... . .. 1-5 Acquiring Instrument Settings with
Device Clear (DC1) . .. ... .. . .. .. .. .... . . . ... .. . ..1-5 the SET Query ..... . . . .... . . . . .. ... . . . .... . .... . . . .3-4
Device Trigger (DT1) ... . . . .... .. .... . . . ... . . . ..1-5 Resetting the Programmable Spectrum
Controller (CO) ..... . . ..... . . . . .. . . . ... .. . . ... . . . . ..1-5 Analyzer and Interface Messages... . .. . 3-4
Connecting to a System . . . .. ... . . ... . . . . ... . . .. . .1-5 Acquiring a Waveform . ... . . . . . .... .. . . .. .. . ... 3-4
Getting Smarter. ..... . . . .. ... . . . .. ... . . . .. . . . . .. .. 3-4
Section 2 DEVICE-DEPENDENT MESSAGE Getting Smarter Another Way . . . ... . . . .. .. 3-5
STRUCTURE AND EXECUTION
Syntax Diagrams . . .. . .. . . ....... . ..... . . .. .. . .. .. .. . .2-1 Section 4 INSTRUMENT CONTROL
Spectrum Analyzer Input Messages . ... .. .. 2-1 Use in Macros ... . . . . . . .. . . . . .... .. . ..... .. . . .. . . . . 4-2
Input Message Format . .. ..... . . .. . . . . ... . . . ..2-1 NUM Argument Values .. ... . . . . ..... . . . . .. . . ..4-2
Message Unit Delimiter (;) .. . . ... . . .. ... . . . .. 2-2 Frequency . .. .... . ..... . . . . . .. . . . . .. ... . . . ..... . . .. . . . . ...4-3
Message Terminator (TERM) . . . . . . .. . . . ... 2-2 FREQ .. . .... .. ..... . . . . .. ... . . ..... . . . . .. .. . . . ... . .. ...4-4
Format Characters ... .. . . .... . . . . .. . . ..... . . . ... 2-2 TUNE. . . . .... .. .... . . . . ..... . . . ..... . . . ... . . . . .,.. . .. .. .4-4
Input Buffering and Execution . . ..... . . .... 2-2 TMODE ... . .. .. .. . .. ...... . . ..... . . . . ... . . . . .... . .... .4-4
Command Format ... . . . .. .... . . . ... . . .... . . . .... 2-2 FIRST . . .... . .... .. . .. ... .. . .. ..... . .. . ... . . . . .. .. . .... . 4-5
Header .. . . . . . . ..... . . .. ... . . . .. .. .. . .. ... . . .... . . . .. ..2-2 SECOND . . ... . . . . .. .. . .. . .. .. .. . . .. .... . . . . .. .. . .... .4-5
Header Delimiter (SP).. ... .. . .. .. . . ..... . .. .. .. 2-3 TGMODE . . ... . . . . .... . . . . .. .. .. . . .. .. .. . . . . .. .. . ... . . 4-5
Argument Delimiter (,) .... .. ..... .. .... . . .... .. 2-3 SAMODE . . .. . . . .. .... . . . ..... .. . ..... .. . .. ... . . . ... . .4-5
Argument Format . .. .. ..... . .. .... . .. .. .. . ..... . .2-3 DISCOR . .. .. . . . .. ... . . . . .... . . . . .... . . . . .. ... . .. ... . .4-6
Numbers . . .... . . . . . ... . . .. ..... . . . .. .. . . ... .. . .... . . .2-3 FRQRNG .... . . .. . . .. . . . . .... . . . ..... . . . . .. .. . . .. .. . . .4-6
Units ..... . . .. . .. . . . . . .... . . .. .. .. . . . .. . .. . .. .. . . .... . . . . 2-3 STEP .... . ..... . . ...... . . . ..... . . . .. ... . . . ..... . . .. .. . . .4-7
Character Argument.. . . . . .. .. . . . . ... . . ..... . . . .2-4 MSTEP . . ..... . . ..... . . . . ..... . . . .. .. . . . . .. ... . . .. .. .. .4-7
Link Argument .. .. .. ..... . . . . .... . . . . .. . . . . .. .. . . . .2-4 PSTEP .. . ..... . . ..... . . . . ..... . . ... .. . . . ... .. . . . .. . . .. .4-7
String Argument . .. ..... . . . . .... . . .. .. . . . ... . . . _24 COUNT. . .... . . . .. ... . . . . .... . . . ... . . . . . .. . . . . . ... . . ... 4-8
494AP Programmers



Page Page
Section 4 (continued) Section 4 (continued)
RVALID? . . ... . . . .. .. ... . ... . .. ..... . . . . ... . . . . . .. ..4-36
CRES . . . ..... .. . ..... .. . ... . . . .. ... . . . .... . . . .. . . . . . ...4-8
CNTCF . ..... .. . ..... .. . ... . . . .. ... . . . .... . . . .. . . . . .. ..4-9 Section 5 MARKER SYSTEM
STSTOP . ... .. . .. .. . . . . ... . . . .. ... . . . .. .. . . ... . . . . .. . .4-9 Use in Macros.. . . . . ..... . . .. . . . . . ... .. . . . .... . . ... 5-1
DELFR. . .... . .. . ..... . .. ... . . ... ... . . . .. .. . . ... . . . . ... . 4-9 NUM Argument Values .. . . . . . ... . . . . . .... .. .. . 5-1
DEGAUS . .... . . .. .. . . . . ... . . .. .... .. ..... . . ... .. . ..4-10 Waveform Finding .. .. . . ... . . .. .... . . . . ..... .. .. . 5-1
EXMXR . . .. .. .. . . .... .. . ... . . . .. ... . . . . ... . . . .. . .. . .. 4-10 System Control .... . . . . ... .. . . ... . . .. .... . . .. .... . .... . 5-1
IMPED . . ..... .. . ..... . . . ... . . . .. ... . . . .... . . . .. . . . . ..4-10 MARKER .. . . ..... . . . . ... .. . . .. . . . .. .... . . .. .. .. . .... . 5-1
Frequency Span and Resolution . . . ... . . . . ..4-11 MTRACE .. . . ..... . .. .... .. . . .. . . . .. .. .. . . .. .. . . . .... . 5-2
SPAN . . . .... . .. . .... . . . . . .. . . . .. ... . . . .. .. . . . .. . . . . ..4-12 M1 ASGN .. . . ..... . .. .... .. . . ... . . .. .... . ... .. .. . .... .5-3
ZEROSP ... . . . . .... . . .. . .. . . . .. ... . . . .. .. . . ... . . . . ..4-12 M2ASGN .. . . ..... . .. .... . . . . .. . . . . ... .. . ... .. .. . ... . . 5-4
MXSPN . .... . .. . .... . . .. . .. . . ... .. . . . . .. .. . . ... . . . . ..4-13 NSELVL .... . . ..... . .. .... . . . . .. . . ..... .. . ..... . . . ... . . 5-4
RESSW .... . .. ..... . . .. . . . . . ..... . . . . .. .. . . . . . . . . . ..4-13 SGTRAK ... . . ..... . .. .... . . . ... . . ..... .. . ..... . . . . .. . . 5-5
ARES. . . . .... . . . ..... . . .. . . . . . ...... . . . .. .. . . ... . . . . ..4-14 Marker Positioning . .... . . . ... . . ..... .. . .. . .. . . . . .. . . 5-5
iDENT. . . .... . .. . .... . . .. . . . . . ..... . . . . .. .. . . ... . . .. . .4-14 DPMK . ...... .. .... . . .. .... . . . ... . . ..... .. . ..... . . . . .. . . 5-5
Vertical Display and Reference Level . . ..4-15 MAM PL? .. .. ..... . .. . . . . . .. ... . . ..... .. . ..... . . . ... . .5-6
VRTDSP ... . . . . .... . . .. . .. . . ..... . . . . .. . . . . .. . . . . . .. 4-16 MCEN . . ..... . . ..... . .. .... . . . ... . . ..... .. . ..... . . . . .. . . 5-6
REFLVL ..... .. . .... . . . . . .. . . ...... . . . .. .. . . ... . . . . ..4-16 MCPOIN ... . . ..... . .. . ... . . . . .. . . ..... .. . ..... . . . ... . . 5-6
RLUNIT ..... .. . ..... . . . . .. . . ... ... . . . .. .. . . ... . . . . ..4-17 MEXCHG .. . . ..... . .. .... . . . . .. . . . . ... .. . ... .. .. . ... . . 5-7
ROFSET .... .. . ..... . . . ... . . . .. ... . . . .. .. . . . .. . . . . .. 4-18 MFREQ .... . . ..... . .. .... .. . . ... . . .. .... . . .. .. .. . .... .5-7
CAL . . . . . . ..... .. . ..... . . . ... . . . .. ... . . . .. .. . . . .. . . . . ..4-18 MKTI ME ... . . . .... . . . . ... . . . . ... . . .. .. .. . . .. .. .. . .... .5-8
ENCAL . ..... .. . ..... .. . ... . . . .. ... . . . .... . . . .. . . . . ..4-19 MKDP . . ... .. . . . ..... . . . ... . . . . .. . . . .. .... . . .. .. .. . .... . 5-8
FINE . .. . . . .. .. .. . . .... .. . ... . . . .. .... . . ..... . . .. . . . . ..4-20 MLOCAT? . . . ..... . . . ... .. . . ... . . .. .... . . .. .... . .... .5-8
RLMODE . .... . . .... .. . .... . . .. .... . . . .... . . ... . . . ..4-20 MTOP . . . .. ... . . ..... . . . ... .. . . ... . . .. .... . . .. . ... . .. .. . 5-9
RGMODE .. .. . . .. .. .. . .... . . . . .... .. . .... . . ... .. . ..4-21 MTU NE . .. ... . . ..... . . . . .... . . . .. . . .. .... . . . . . .... .. .. . 5-9
PEAK. .. . . .. .... . . .. .... . .... . . . . .... .. . .... . . ... ... ..4-21 Marker Finding . .... . . . ..... . . . .. . . . . . ... . . . . . .... .. .. .5-9
MINATT . .. ... . . . .. .... . .. .. . . . . .... .. . .... . . . .. ... . .4-22 HRAMPL .. ... . . ..... .. . ..... . . .... . . . .. ... . . . .. .. . .5-10
MAXPWR ... . . . . . .... . .. .. . . . . .... .. . .... . . . .. ... . .4-22 LRAMPL . .. ... . . ..... ... ..... . . .... . . . . . .... . . .. .. .. 5-10
RFATT? . . . . ... .. . . ..... .. ... .. . .. ..... .... . . . ..... . .4-23 BWNUM . . . ... . . ... .. .. . . .... .. . .... . . . . .... . . . . .. ..5-10
PLSTR . . . . . . ... .. . . ..... . . ... .. . .. .... . ..... . . ..... . .4-23 BWMODE . . .. . . . .. ..... . .... .. . .... . . . . .... .. . . .... 5-11
VIDFLT . . . . . ... .. . . . .... . . ... .. . .. . .... . .... . . ..... . .4-23 MFBIG . ... . . ... .. . .. ..... . .. .... . .... . . . . .... .. . . .... 5-11
Sweep Control . .. . . . .... . . ... .. . .. ... .. . .... .. . .. .. . .4-24 MLFTNX . . . . .. .. . .. ...... .. .... . .. .. . . . . .. .. .. . . .... 5-11
TRIG .. ... . . . . ... .. . . . .... . . . .. ... . . . ... .. .. .. .. . .. ... . 4-24 PKFIND .. . . . .... . .. ...... .. .... . .. ... . . . .. .. .. . . .... 5-12
SIGSWP . . . . .. ... . . .... . . . .. ... . . . ... .. . . .... . .. .. . . 4-25 PKCEN ... . . . ..... . . ...... . . . ... . .. ... .. . .. .... . . ....5-12
TIME. . ... .. . . . .. ... . . ..... . . ..... . . . . .. .. . . .... . . . . .. . 4-25 MMAX ... . . . . ..... . . . ..... . . . . .. . . . ... .. . . . . .... . ... .5-13
Digital Storage. ... . . ..... . . ..... . . . . .. .. . . .... . . . . .. . 4-27 MMIN ...... . . ..... . . . ..... . . . ... . . . ... .. . . . . .... . ....5-13
AVIEW .. .. . . . .. ... . . . .... .. ..... . . . . .. .. . . . ... . . . . .. . 4-27 MRGTNX . . . . .... . . . ... .. . . . ... . . . . .. .. . . . . .... . .... 5-13
BVIEW .. .. . . . .. ... . . . .... .. ... .. . . . . .. .. . . . ... . . . . ... 4-28 THRHLD .. . . . .... . . . ..... . . . ... . . . ... .. . . . . .... . .... 5-14
SAVEA . .. . . . .. ... . . ..... .. .. . . . . . . . .. .. . . . ... . . . . ...4-28 MVLFDB .. . . . .... . . . ... .. . . . ... . . . . .... . . . . .... . .... 5-14
BMI NA .. .. . . . .. ... . . ..... . . ..... . . . . .. .. . . .... . . . . ...4-28 MVRTDB . . . ..... . . . ...... . . ... . . . . .... . . . . .... . ....5-14
DSTORE . . . . . . ... . . . .... . . . ..... . . . . . .. . . .... . . . . ... 4-28 STYPE ..... . . . ..... . . ... ... . . ... . . . ..... . . . . .... . .... 5-15
DRECAL . . . . .. ... . . . .. .. .. ..... . . . . .. .. . . . ... . . . . ... 4-29 SGERR .... . . . .... . . . ... ... . . ... . . . . .... . . . . .... . .... 5-19
MXHLD. .. . . . . . .... . . .. .. .. . .. ... . . . .. .. . . . ... . . . . ...4-29 Miscellaneous . .. .. . . . . .. ... . . ... . . . . .... . . . . . .... .. .. 5-19
CRSOR... . . . . . ... . . . .... .. . .. ... . . . .. .. . . . ... . . . . .. . 4-29 ZOOM ... ... . . .. .. . . . . .. .. . . . ... . . . . .... . . . . .... . .. ..5-19
Display Control .... . . .. .. .. . .. ... . . . .. .. . . . ... . . . . .. .4-31 ZETI M E . .. . . . .. .. . . . . .. ... . . ... . . . . .... . . . . .... . .. .. 5-19
REDOUT. . . . .. ... . . . .... . . . .. .. . . . . .. .. . . . ... . . . . .. . 4-31
GRAT . .. .. . . . . . ... . . . .... . . ... .. . . . . .. .. . . . ... . . . . .. . 4-32 Section 6 MACROS
CLI P . . . .. .. . . . .. ... . . ..... . . ..... . . . . .. .. . . .... . . . . .. .4-32 Notes on the Program Examples . . .... . .6-1
General Purpose . . . ..... .. ..... . . . . .. .. . . .... . . . . .. . 4-33 Math Commands .. ..... . .... .. . .... . . . . .... .. . . .. .. . .6-1
HELP? .. .. . . . .. ... . . ..... . . ..... . . . ..... . . .... . . . . .. . 4-33 PLUS... ... . . ... .. . ....... . .... .. ..... . . . . .... .. .. .... . .6-1
STORE . .. . . . .. .. . . . ..... . . ..... . . . ... .. . . .... . .. . .. .4-34 SUBT .. .. . .. ... .. ........ . .... .. ..... . . . . .... .. .. .... . .6-1
RECALL . . . . .. ... . . .... . . . .. ... . . . ..... .. .... . .. ... .4-34 MOLT .. ... .. ... .. . ....... ..... .. ..... . . . . .... .. .. .. .. . . 6-2
RDATA . .. . . . .. ... . . .... . . . .. ... . . . ..... .. .. .. . .. ... . 4-34 DIVIDE .. . .. ... .. . ....... . .... .. ..... . . . . .... .. .. .. .. . .6-2
PLOT? .. . . . . . .. ... . . .... . . . .. ... . . . ..... .. .. .. . .. ... . 4-35 Register Commands .. ..... . . ..... . . .. ... . . . .. .. .. .. 6-2
PTYPE.. . . . . ... ... . . .... . . . ..... . . . ... . . . . .. .. . .. ... . 4-35 PUTREG . .. ... . . ..... ... ..... . . .... . . . . . ... . . . .. .. . . ..6-2
POFSET . . . . .. ... . . .... . . . .. ... . . . ..... .. .. .. . .. .. . . 4-36 EXCHG .. . . . ... . . ..... .. . ..... . . .. .. . . . . . ... . . . .. .. . . ..6-3
ECR . .. ... . . . . ... .. . . . .... . . . .. ... . . . ..... .. .. .. . .. ... . 4-36 I NTEG R . . .. ... . . ..... .. . ..... . . .... . . . . . ... . . . .. .. . . .. 6-3
SSR . .. ... . . . . ... .. . . . .... . . . .. ... . . . ... . . .. .. .. . .. .. . . 4-36 POP . .... .. . .. ... . . ..... .. . ..... . . .... . . . .. ... . . . .. .. . . ..6-3



iv
494AP Programmers



Page Page
Section 6 (continued) Section 8 (continued)
ENTER . .... .. . . . ... . . . ...... .. . .... . . ... .. . .. ..... ....6-4 Data Point Commands Interaction .... . .8-2
Branching and Looping Commands .... ....6-4 CENSIG . . .... . . . ...... . . . .... . . . . .. ... . . . .... .. ..... . . 8-3
GOTO. . . .... .. . . . .. . .. . . ... .. .. . . .... .. .... . .. . .... . ...6-4 TOPSIG . . .... . . . . ..... . . . .. ... . . . .. ... . .. .. .. .. . .. .. . . 8-3
LABEL. . .... ... . . .. . .. . . ... .... . . .... .. ..... . . . .... . .. .6-6
FOR ..... . ....... . . . . ... . . ... .... . . ...... ..... . . . ..... .. .6-6 Section 9 SYSTEM COMMANDS AND {QUERIES
RETURN . ..... . . . . .... . . .. .... . . .. .... . .. ... . . ..... .. .6-7 NUM Argument . .. . . . . . .... . . . . .... .. . . .... . .. .. . .9-1
GOSUB .. .... . . . . . ... . . . .. . ... . . .. .... . .. ... . . . .... .. .6-7 Use in Macros ... ... . . . . .... . . . . .... .. . . .... . .. .. . . 9-1
IF. . . . ..... . .. ..... . .. . .... . . .. . ... .. .. .... . .. .. . . . . .... .. .6-8 Instrument Parameters .... . . . . .... .. . . .... . .. .. . . 9-1
Print Commands . . .... . . . . . ... .. .. .... . .. ... . . . .... . . .6-9 SET? . . .. .. ....... . . .. ... . . . . .... . . . . .... .. . . .... . .. .. . .9-1
CLEAR . . . . ..... .. . .... . . . . . ... .. . . .... . .. ... . . . .... . . .6-9 INIT . . . . .. .. . ...... . . .. ... . . . . . ... . . . . ...... . . .... . .. ... . 9-5
DSLINE? . ... .. .. . ..... .. . . . .... . . . ... . .. .... . . .... . . .6-9 ID? .. . . . .. .. . .. .... . . .. .. . . .. . . .... .. . ...... . . .... . .. ... . 9-5
MRDO? .. .. . . . ..... .. ..... . . . . .... .. .. .. . . . ... .. . .. .6-10 HDR . . . .... . .. .... . . .. .... .. . . .... .. . .. ..... . .... . . . . .. .9-6
PRINT . . ... .. . . . ..... .. ...... .. . .... .. ..... . . ... .. . ...6-11 Message Execution .. .. . . .... .. . .. ..... . .... . . . . ...9-6
Data Commands ... .. . .. ... . . . .... .. ..... . . ... .. . ...6-12 WAIT . . . ... . . . .... .. . . . ... .. . . . ... .. . .. . .... . .... .. . . ...9-7
MDATA ... ... . . . .. .. .. . .. ... . . . ... . .. . .... . . ... .. . ... 6-12 REPEAT . . .. .... .. . . . ... .. . . . ... .. . .. . .... . .... .. . . ...9-7
READ . . . .. .. . . . . .. .. .. . .. ... .. . .... .. ..... . . ... .. . ...6-12 Status and Error Reporting . .. . .... . .... .. . . ...9-7
MRESTO .. . . . . .. .. .. . .. ... .. . .. .. .. .... . . . . .. .. . ...6-13 EOS .. . . .... . .. .... .. . . . ... .. . . . ... .. . .. . .... . .. .. .. . . . ..9-7
General Purpose Macros . .. .. .. ..... . . . .... . ...6-13 ROS . . . .... . .. .... .. . . . . .. .. . . . ... .. . .. ..... . .. .. .. . . . ..9-8
PAUSE . .. ... . . . .. .. .. . .. ... .. . .. . . . . . .. .. . . ... .. . ...6-14 WARMSG .. .... .. . . . ... .. . . . ... .. . .. . ..... .... .. . . ...9-8
RUN .. . . . .. ... . . . .. .... . .. ... .. . ...... ..... . . ... .. . ...6-14 Status Byte ... .. . . . ... .. . . . ... .. . .. . .... . .... .. . . . ..9-9
DONE . . . .. ... . . . . . .... . .. ... .. . ...... ..... . . . .. .. . ...6-14 Effect of Busy on Device-
EMAC . . . .. .... . . .. .... . .. ..... . .. .... ..... . . . .... . ... 6-14 Dependent Messages ... .. . .. ..... . .. .. .. . . . ..9-9
KILL .. . . . .. ... . . . .. .... . . . ..... . .. .... . .... . . . .... . .. .6-15 Effect of Busy on Interface
MACRO? .... .. .. .... . .. ..... . .. ..... .... . . . .... . .. .6-15 Messages . . . ... .. . . . . .. ... . . ... .. . .. . ..... .... .. . . . ..9-9
MCSTOP .... .. .. .... . . . . .... . .. .... . .... . . . .... . .. .6-15 DT . . .... . . . .... . . ...... .. . ..... .. . . . ... . . . .. .. .. . .... . . 9-10
MEMORY ... .. . . .... . . . ..... . . . ..... .... . . . ... .. .. .6-15 EVENT? . ... . . . . ..... .. . ..... .. . .. ... . . . .. .. .. . .... . .9-10
STNUM . .. .... .. .. .... . . . . .... . . . .... . ..... . . ..... .. .6-15 ALLEV? . .... . . . .. ... .. . ..... .. . .. .... . . .. .... . .... . . 9-11
MENU . . . . . .... .. . . .. .. . . . . .... . . . ..... .... . . . ..... .. .6-16 ERR? .. .. . .... . . . ....... . ..... .. . .. ... . . . .. .... . .... . .9-11
SWEEP . . . ....... . .... . . . . .... . . . . .... ..... .. . .... . . .6-16 ERCNT? .... . . . ... ..... . .... .. . .. .... . . .. .... . .... . .9-11
VAR? .. . . . . .. .. ... . ... . .. . . .... . . . . .... . .... .. . .... . . .6-16 N UM EV . . . ... . . . . .. ..... . .. .... . .. . ... . . . . .... . .... . . 9-11
STMAC . . . .. .... . . .... .. . . . .. . . . . . .... ..... .. . . . .. . . .6-16 EVOTY? . .. ... .. . .. ..... . ... ... . .. . ... . . . . .... . ..... . 9-11
GETWFM .. ..... . .... .. . . . .. . .. . . .... . .... .. . .. .. . . .6-17 TEST? .. . .. .. . .. . .. ..... . ...... . . . . ... . . . . . ... . ..... .9-12
INPNUM . .. ..... . .... .. . . . . . . .. . . ..... .. .. .. . . . ... . .6-17 Error Codes . ... .. . .. ..... . .. .... . . . . ... . . . . . ... . . .. .. . 9-13

Section 7 DISPLAY DATA AND CRT READOUT 110 Section 10 HELPS AND HINTS
NUMUse in Macros . .. . .. . . ..... .. .... . .. ... . . .. 7-1 Notes on the Program Examples . .. ...10-1
Waveform Transfers .. . . . . .... . . ...... .... . . . .... . ..7-1 Programming Techniques ... . . . ..... . . .. .. . . . .. 10-1
WFMPRE . . . ..... .. ..... . . . . .... . . .. ... . . ... .. . . ... . . .7-1 Signal Processing .. . . . ..... . . . . .... . . . . ... . . . .10-1
CURVE .. . . . . . .. .. .. . ..... .. . ..... .. . ... . . . .. .. . . . .. . . .7-4 Running Programs Without a
WAVFRM? . . .. .... . ..... .. . .. ... .. . ... . . . .... . . . .. . . .7-5 Controller (Macros) .... .. . .... . .. . . . ... .. . .... .. .10-1
DPRE? . . .. . . . .. .... . ....... . .. ... .. . .... .. ..... . . ... . .7-5 Data Acquisition ... .. . .. .. .. . . .. .... . . . . .. .. . .... .. . 10-2
DCOPY? ... . . . . . ... . ... ..... . . . .... . .... .. . .... . . ... . .7-6 Synchronizing Controller and
Crt Readout Transfers ... . .. ..... .. .... . .... . . . .. .. 7-6 Spectrum Analyzer . .... . . . . ... .. . . . ... . . . ..... 10-2
RDOUT . .. ... .. . . . .. .. . . . ..... .. . .... . . ..... . .... .. .... 7-6 Synchronizing with the Sweep . . . . . . ....10-2
TEXT . .. . .. ... .. . . . ..... . . ... .... . .. .. . . . .... . .. .... . ... 7-7 Using the End-of-Sweep SRO . . . .. . . ....10-2
UPRDO? . ...... . . .. ... . . . .. .... . . . ... . . ..... . . .... . .. . 7-7 INPUT. An SRO Alternative .. . . . . .. . . . . ... 10-4
MDRDO? . ... .. . . . . .... . . . . .... . . . ... . . ..... . . .... . .. .7-7 Binary Waveform Transfer. .. . ..... .. . .... . . .. .10-4
LORDO? . . . .. ... . . . .... .. . . .... .. . . .. . . . .. .. . . . ... . . . . 7-7 Getting Spectrum Analyzer Binary
Curve Output. . . . . . ... . . . . .... . .. . .. . ... . .. .. . . . . . 10-4
Section 8 WAVEFORM PROCESSING Sending a Binary CURVE to the
Use in Macros . . .. ...... .. ..... . . ... . . . .... .. . ... . . 8-1 Spectrum Analyzer ... . .. . ..... . . . ..... . ... .. . . 10-5
Waveform Finding . . ..... .. . ..... . ... .. . .. .. .. . .... .8-1 Getting and Sending Binary Data
POINT . .... .. . . . .. . .. . . ..... .. . ..... .. .... . .. ..... .....8-1 with RDATA? and RDATA .. . . . .... .. ..... . 10-5
FIBIG.. . .... ... . . .. . .. . . ... .... . . . ... .. ..... .. . .... ..... 8-2 Scaling, Saving, and Graphing
LFTNXT. ..... . . . . . .. . . . .. .... . . .. .. .. ..... . . . .... . .. .. 8-2 Waveform Data. . . .. ... . . . . .... . . . . .... .. . . .... . .. ... 10-5
RGTNXT ...... . . . .... . . .. . ... . . .. .... . .. ... . . ..... .. ..8-2 Saving the Scaled Array. . .... .. . . .... . . . . ..10-6
FMAX . . .. . ..... .. . .... . . .. . ... .. .. .... . .. ... . . . .... . . .. 8-2 Storing Settings ... .. . . .... .. . .. ..... . .... . . . . ..10-6
FMIN ... .. . . .... .. . .... . . . . . ... .. . . .... . .. ... . . . .. .. . . ..8-2
494AP Programmers



Page Page
Section 10 (continued) Appendix A IEEE STD 488 (GPIB) SYSTEM
Using PLOT. . .. .. . . . . . ... . ..... .. . . . . .. . . ..... .. . .10-6 CONCEPTS
Using PLOT With Macros. . .. . .___ .. .. ..10-6 Mechanical Elements . . .... . . . .. . . . . . ... . . .. .... . . .A-1
Multiple Use of Display Buffer. . .... . .. ..10-7 Electrical Elements.. . . . . .. .. . . ... . . . . . ... . . .. .. .. . ..A-1
Buffer Data Flow . . .... . ..... .. . .. . .. . . .... . .. .. 10-7 Functional Elements . . . . .. .. . . ... . . . . .... . . .. .... . ..A-1
Order-Dependent Conflicts .. . .. . . .... . .. ..10-8 A Typical GPIB System. .. . . . .. . . . . . ... . . .. .... . .. A-2
Finding Signals with Waveform Talkers, Listeners, and Controllers . . .... . ..A-2
Processing.... . .. . .. ... .. . . ... . ... . . .. . .. . .. . . ..... .. . .10-8 Interface Control Messages . . . . . . ... . . .. .... . ..A-2
Understanding How Waveform Device-Dependent Messages . . . ... . . . . . ... . ..A-4
Processing Works . ... . . .. .... . . . . ... . . .... . . . .10-8 GPIB Signal Line Definitions . . . . . ... . . . . . .... ..A-6
Setting the Threshold . .. .... . . . . .. . . . .... . . . .10-9 Transfer Bus (Handshake) . . . . ... . . . . . ... . ..A-6
Acquiring Data for Waveform Management Bus . . . . ..... . . .. . . . . . ... . . . . . .... ..A-6
Processing .. . .. ... .. . . ... . . .. .... . . . . .. . . . .... . . . .10-9 Interface Functions and Messages . . . .... ..A-8
Spectrum Search . . ... . . .. .... . . . . ... . . .... . . . .10-9 RL (Remote-Local Function) . ... .. . . . .... ..A-8
Measuring Signal Frequency With T/TE and L/LE (Talker and Listener
COUNT.. .. .... . . . ... .. . . ... .. .. .... . . . . ... . . .... . . . . 10-9 Functions) . .... . . . .... . . . ..... . . ... . . . . ... .. . . . .... .. A-8
Using COUNT-CF . .. ... . . . ..... . . ... . . . .... 10-10 SH and AH (Source and Acceptor
Using MCEN.. .. . .. .. . . . . ... . . . .. ... . . . .. .. . .. .. 10-10 Handshake Functions) . . . . .. .. . . . .. ... . . .... . . A-9
Higher Center Frequency Drift DC (Device Clear Function) . . . . .. ... . . . ..._A-9
Rate After Tuning .. . . . .... .. ...... .. .... . .. .. 10-10 DT (Device Trigger Function) . . . .. . . . . .... . A-9
Noise . . . ... . . . .. .... . . . ... . . . .... .. . ..... .. ..... .. ..10-10 C, SR, and PP (Controller, Service
Using REPEAT for Signal Tracking Request* and Parallel Poll
and Searches. . . .... . . . ... .. . .... . . . ..... .. ..... . . ..10-10 Functions) .. . . . .... . . . ..... . . .... . .. ... .. . .. ..... . . A-10
Spectrum Search Using REPEAT. . . .10-10 Taking Control (Asynchronous or
Messages on the Crt Using Synchronous) .... . . . . .. .. . . . ... . . . . .. .. . . . . .... . .A-10
RDOUT .... .. . . .... .. . . .... . .... .. . . .. .... . .. .. . . . .10-11 Passing Control . . . . .. .. . . . ... . . . . .. .. . . . . .... . .A-10
Using CAL Over the Bus . . .. .. .. . .. . . . . . . 10-11 Performing a Serial Poll .. . . . . .... . . . . .... . .A-10
Comparing FREQ and TUNE .. . ... . .. .. . . . .10-11 Performing a Parallel Pall . . . .... . . . . .... . .A-10
Using the Time Measurement Feature .10-12
Using Multiband Sweep .. ..... . .. . ... . .. .. . . . .10-12 Appendix B PROGRAMMING FUNCTIONS
Comparing the Status Byte and Programming Summary
the ERR? Response . ... . .. ..... . .. . ... . .. .. . . . .10-13 Notes
Execution and Transfer Times . ... . .. .. . . . . 10-14 Status Byte
Interface Messages
Commands and Queries
Quick Reference to Commands and
Queries
Sample Macros
Macro Preparation
Pass/Fail Harmonic Test
Macros (Continued)
Harmonic Macro Test
Output For the Harmonic Macro
Test
Front-Panel Relationship to Mnemonics
ERR?/ERCNT? Responses
ERR? Responses (Numerical Order)
494AP Programmers



LIST OF ILLUSTRATIONS

Figure Figure
Number Page Number Page

TEKTRONIX 494AP Programmable 5-1 Using the PKFIND command .... . . . . .. .. . . . . .. .. . . .... .5-12
Spectrum Analyzer. .. . . . . .... .. ... .. . . . . .... .. .... . . . ... . . . .... . . x 5-2 Locating the signal peak... . . . ..... . . . ..... . . . ... . . .. .. .. . 5-15
1-1 GPIB pushbutton and indicators .. .. . . . ... . .. ... . . . .... . 1-1 5-3 Signal finding example ... .. . . . . .... . . . ... .. . . . . .... . .... . . . 5-16
1-2 Status of active GPIB functions ... . . . . .... . .. ... . . . . ... .1-2 5-4 Signal finding example ... . . . . . ... .. . . . ... .. . . . ..... . .... . .. 5-17
1-3 Rear-panel GPIB ADDRESS switches . ..... . . . .... . .1-3 5-5 Signal finding example ... . . .. . .. . . . . . ... . . . . .... .. . . .... . ..5-17
1-4 Effect of message terminator switch for 5-6 Signal finding example . .. . . .. ... . . . . . .. . . . . . . ... . . .. .. .. ...5-18
input and output . . . .... .. . . . . . . .. . . ....... . ..... . ... .. . .. .. .. . ..1-4 5-7 Signal finding example . .. . .. ... . . . .. ... . . . .. ... . . . .. .. . . .. .5-18
1-5 The rear-panel IEEE STD 488 POST (GPIB) . .. . ..1-6
1-6 The spectrum analyzer can be connected to a 6-1 INPNUM example . . .. .. . . . . ..... . . . ..... . . . .... . . . . .... . . ... .6-18
GPIB system in either a star or a linear
pattern .. .... . . .. ... . . ..... .. . .. . .. .. . .... .. . . .... .. . . .. . . . .. ... . . . .. .1-6 7-1 Waveform data related to the display .... . . . . ... . . . ..7-5

4-1 Front-panel Frequency commands . . . ... . . ..... . . .... .4-3 9-1 Test conversion chart .... . . . . . . .. . . . . . ... . .. . ..... .. . ... . . . 9-13
4-2 Front-panel Frequency Span and Resolution
commands . . .. .. . . . ..... .. . .. ... .. . .... .. . . .... . . . . .. . . . .... . . . ..4-11 10-1 Synchronizing controller and spectrum
4-3 Front-panel Vertical Display and Reference analyzer for data acquisition . . ..... . . . . .. .. . . . .. . . . . . .10-3
Level commands ... . . . ... .. . . . . ... . .. .. .... . . . ... . . .... . .. ...4-15 10-2 How multiple use of the display data buffer
4-4 Front-panel Sweep Control commands . ..... . .. ...4-24 is controlled .. . . . . ... . .. .. .. . . . . .. ... . . . .... . . . . ... .. . . . ... . .. . .10-7
4-5 Front-panel Digital Storage commands ..... . .. .. .4-27
4-6 Front-panel Display Control commands ..... . .. .. .4-31 A-1 IEEE Std 488 (GPIB) connector . . ... .. . .. ..... . .... . .. .A-1
4-7 Front-panel General Purpose commands .. . .. .. .4-33 A-2 A typical GPIB system ... .. . . . ... .. . . . .. . .. . .. ..... . .... . . . .A,3
A-3 ASCII & GPIB Code Chart . . ... .. . . . .. . .. . .. ..... . .... . .. .A-5
A-4 An example of data byte traffic on the
GPIB .. . . ... .. . . . ..... . . .... . . . .. .. . . . . . ... .. . . ... . . . . .. ..... . .... . .. .A-7
A-5 A typical handshake timing sequence. .. . . . . .... . .. . A-7



LIST OF TABLES

Table Table
Number Page Number Page

1-1 Bus Addresses . . . . .. . .. . . . . . .... . . .. .. .. . . . ... .. . .... . . . ... . . . ..1-3 5-1 Marker Trace Organization . . . .... . . . ..... .. . .. . . . . . . ... . . .5-2
1-2 Spectrum Analyzer IEEE 488 Interface
Functions . .. . .. .... . . . .. . .. . . . .. .... . ..... .. . .. ... .. . ... . . . ..... . . ..1-4 6-1 Error Messages ... . . .... . . . .. ... .. . .. .. .. . . .. .... . . . . .. .. . .. ..6-14

4-1 Front-panel Commands and Queries . . ... . . . .. .. . . . .. 4-1 9-1 Instrument Functions . . .. ... . . . ..... . . . ..... . . . ..... . . .. .. . . . . 9-6
4-2 Ranges for the TUNE, FIRST, SECOND, 9-2 Warning Messages .. . . . .. ... . . . ..... . . . .. ... . . . .. ... . . .. .. . . . ..9-8
FRQRNG, STEP, SPAN, and MTUNE 9-3 Test Conversion. .. .. ... . . .. .... . . . ..... . . . ..... .. . .. ... . . . ... . 9-12
Commands . .. .. . . . . .... . . . . ..... .. ..... . . . . .... . . .. .. . . . ... .. . . ...4-2 9-4 Error and Event Codes . ... . . . . ..... . . . ..... . . . .. .. . . .. . . . .9-14
4-3 Resolution Bandwidth Selection . .. ... .. . .... . . ..... . .4-13
4-4 Reference Level Steps . .. .... . ..... .. . .. ... .. . ... . . . ..... . .4-17 10-1 Execution and Transfer Times .. . . .. .... . . . . .. . . . ..10-14
4-5 Calibration Codes ... . . . . . .. .. .. . .... . .. . .. ... . .. ... . . ... .. . . .4-19
A-1 Major GPIB Interface Functions . . .. ..... . .. .... . .. .. . . .A-2
A-2 Interface Messages and Functions . ... . .. .... . .... . . .A-4
494AP Programmers



SAFETY SUMMARY
(Refer all servicing to qualified servicing personnel)

The safety information in this summary is for both As Marked on Equipment
operating and servicing personnel . Specific warnings and
cautions will be found throughout the manual where they
CAUTION indicates a personal injury hazard not
apply, but may not appear in this summary.
immediately accessible as one reads the marking, or a
hazard to property, including the equipment itself.
CONFORMANCE TO INDUSTRY DANGER indicates a personal injury hazard immedi-
STANDARDS ately accessible as one reads the marking.


This instrument complies with the following Industry SYMBOLS
Safety Standards and Regulatory Requirements .


Safety In This Manual

CSA : Electrical Bulletin
This symbol indicates where applicable cau-
tionary or other information is to be found.
FNI : Electrical Utilization Standard Class 3820
ANSI C39 .5 - Safety Requirements for Electrical
and Electronic Measuring and Controlling
As Marked on Equipment
Instrumentation .
IEC 348 (2nd edition) - Safety Requirements for
Electronic Measuring Apparatus .
DANGER - High voltage .




Regulatory Requirements
0 Protective ground (earth) terminal.


VDE 0871 Class B - Regulations for RFI Sup- ATTENTION - refer to manual .
pression of High Frequency Apparatus and Instal-
lations,
Refer to manual

TERMS
POWER

In This Manual
Power Source
CAUTION statements identify conditions or practices
that could result in damage to the equipment or other This product is intended to operate from a power
property . source that will not apply more than 250 V rms between
the supply conductors or between either supply conduc
WARNING statements identify conditions or practices tor and ground . A protective ground connection by way
that could result in personal injury or loss of life. of the grounding conductor in the power cord is essential
for safe operation .
494AP Programmers



Grounding the Product OPERATIONAL PRECAUTIONS
This product is grounded through the grounding con-
ductor of the power cord. To avoid electrical shock, plug
the power cord into a properly wired receptable before
Do Not Operate in Explosive Atmospheres
connecting it to the power terminal. A protective ground
connection by way of the grounding conductor in the
power cord is essential for safe operation . To avoid explosion, do not operate this product in an
explosive atmosphere unless it has been specifically
certified for such operation .
Danger From Loss of Ground

Do Not Remove Covers or Panels
Upon loss of the protective-ground connection, all
accessible conductive parts (including knobs and con-
trols that may appear to be insulating) can render an To avoid personal injury, do not remove the product
electric shock. covers or panels unless you are qualified to do so. Do
not operate the product without the covers and panels
properly installed .
Use the Proper Power Cord Dangerous voltages exist at several points in this
product. To avoid personal injury, do not touch exposed
Use only the power cord and connector specified for connections and components while power is on. REFER
your product. ALL SERVICING TO QUALIFIED SERVICE PERSONNEL .
Use only a power cord that is in good condition .
CSA certification applies to the spectrum analyzer
with CSA-certified power cords only (the power cord
shipped with your instrument and Tektronix Option A4) .
International power cords (Tektronix Options A1, A2, A3,
and AS) are approved only for the country of use, and
are not included in the CSA certification .
Refer cord and connector changes to qualified ser-
vice personnel .
For detailed information on power cords and connec-
tors, see the Maintenance section in the Service Manual,
Volume 1 .


Use the Proper Fuse

To avoid fire hazard or equipment damage, use only
the fuse of correct type, voltage rating, and current rating
for your product (as specified in the Replaceable Electri
cal Parts list in Volume 2 of the Service Manual). Refer
fuse replacement to qualified service personnel .
494AP Programmers




RFf Wve . GEN