Instruction/ maintenance manual of the product 1670G Agilent Technologies
Go to page of 626
Programm er’s Guid e Publication number 01670-97021 March 20 02 For Safety information, Warranties, and R egulatory infor matio n, see the pages behin d the Inde x © Copyright Agilent Technol ogies.
ii.
In This Book This programm er’ s guide co ntains gene ral informati on, inst rument level commands, logic anal yzer co mmands, os cillosco pe module co mmands , pattern generator module co mmands, and pro gramm ing example s for prog ramming the Agi lent Technologi es 167 0G-se ries logic analyzers .
Part 1 Part 1, consis ts of chapters 1 throug h 7 and contains general informati on ab out pro gramming b asi cs, GP IB and RS-232-C i nterface requirem ents , document ation co nventi ons, st atus report ing, and erro r messages . If you are already familiar with IEEE 488.
The commands explained in this part give you access to all the com mands used t o operate the log ic analyze r portio n of the Agilent 1670 -se ries syst em.
Part 6 Part 6, chapte r 43 , contai ns pro gram exam ples of actual t ask s that show you how to get start ed in programming the Agil ent 1670G- series lo gic analyz ers. The co mple xity of y our programs and t he tasks they accomplish are limit ed only by your imaginatio n.
MEA Sure Subsyst em 33 TIMeba se Subs yste m 34 MARKer Subsy s te m 32 DI SPlay Sub syste m 31 TRIGge r Subs ys tem 35 WAVef orm Su bsystems 36 Pr ogramming the Pattern Gener ato r 37 FORM at Subs yst.
viii.
Table o f Con tents Part 1 G enera l Informa tion 1 In troduct ion to Prog ramming the Agilent T echnologies 1670G- Series Log ic Analy zer Talk ing to th e In strument 1–3 Init ializat ion 1–4 In.
Bus Commands 2–6 3 Programming Over RS-232-C Interface O perat ion 3–3 RS-232 -C Cables 3–3 Minimum Three- Wire Int erface with So ftware P rotoco l 3–4 Extended Int erface wi th Hardware Hand.
Key F eatures 6–6 Serial P oll 6–7 7 Error Messag es Device Dependent Errors 7–3 Command Erro rs 7–3 Execut ion Errors 7–4 Internal Erro rs 7–4 Query E rrors 7–5 Part 2 Instrument Comma .
LER (L CL Event Regist er) 9–11 LO CKout 9 –12 MEN U 9–12 MESE<N> ( Mo dule Event Stat us Enable ) 9–14 MESR<N> ( Modul e Event St atus Regi ster) 9–16 RMODe 9–18 RTC (Real-t i.
LOAD [:CONFig ] 12–1 4 LOAD:IASSe mbler 12–1 5 MKDir (Mak e D irecto ry) 12– 16 MSI (Mass Sto rage Is) 12–17 PACK 1 2–1 8 PURG e 12 –18 PWD ( Prese nt W o rking D irect ory) 12–1 9 RENam.
15 SFORma t Subsy stem SF ORmat 1 5–6 CLO Ck 15– 6 LABel 15–7 MASTer 15–9 MOPQ ual 15–10 MQ Ual 15–1 1 REMove 15–1 2 SETHold 1 5–12 SLAVe 15– 14 SOPQ ual 15–15 SQ Ual 15–1 6 THRe.
CLRPatt ern 17–8 DATA 17–9 LIN E 17–9 MMODe (Marker Mode) 17–10 OPATtern 17–1 1 OSEarch 17–12 OS Tate 1 7–1 3 OTA G 17–1 4 OVERlay 17 –15 REMove 17–1 5 RUNTil (Run Unt il) 17–16 .
19 SCHart Subsystem SCHart 19 –4 ACCumulate 1 9–4 CENTer 19–5 HAXis 1 9–5 VAXis 1 9–6 20 CO MPare Subsyst em COMPare 20–4 CLEar 20–5 CMASk 2 0–5 CO PY 20–6 DATA 20–6 FIND 20 –8 L.
MLENgt h 22–15 RAN Ge 22 –16 SEQuence 22–17 SP ERiod 2 2– 18 TCONt rol (Tim er Contro l) 22–19 TERM 2 2–2 0 TIMER 2 2–2 1 TPOSit io n (Tri gger Po sition) 2 2–22 23 TWAVeform Subsyst e.
XSEarch 23–23 XTIMe 23–24 24 TLIS t Subsy stem TLISt 24– 7 COLumn 24–7 CLRPatt ern 24–8 DATA 24–9 LIN E 24–9 MMODe (Marker Mode) 24–10 OCON d it io n 24–11 OPATtern 24–1 2 OSEarch .
OVER V iew:O MARk er 25–13 OVE RView:O VS Tatist ic 25–1 4 OVER V iew:XMA Rker 25–1 5 HIS T ogram: HSTat istic 25–16 HIS T ogram: LABel 2 5–17 HIS T ogram: OT Her 25 –18 HIS T ogram: QUALi.
28 Oscilloscope Root Le vel Commands AUToscale 2 8–3 DIGit iz e 28–5 29 ACQuire Subsy stem CO UNt 29– 4 TYPE 2 9–5 30 CH ANnel S ubsystem COUP ling 30–4 ECL 30– 5 OFFSet 30–6 PROBe 30–.
RUNTil (Run Unt il) 32–11 SH O W 32–1 2 TAVerage? 32 –12 TMAXimum? 32– 13 TMINimum? 32–13 TMOD e 32–1 4 VMOD e 32–1 5 VOTime? 32–16 VRUN s? 32 –16 VXTime? 32 –17 XAU To 32–1 8 XO.
35 TRIG ger Subsyst em CO NDit io n 3 5– 5 DELay 3 5–7 LEVel 3 5–8 LO Gi c 3 5– 10 MODE 35– 11 PATH 3 5–1 2 SLO Pe 35 –12 SO URce 35–1 3 36 WAVeform Subsy st em Format for D ata Transf.
Example Pattern Generat or Pro gram 37–3 Selecting the Patt ern Generat or 37–4 Command Set Organiz ation 37–5 Pattern Generator Level Commands 37–7 STEP 37–8 RESume 3 7–10 38 FORMa t S ub.
41 SYMBol Subsyst em SYMB ol S u bsyste m 41– 2 BASE 41–4 PATT ern 41– 5 RAN Ge 41 –6 REMove 41–7 WIDTh 41–8 42 DATA and SET up Comma nds Data and Setu p Command s 42–2 SYSTem:DATA 4 2.
Pa rt 1 Gener al Informatio n.
.
1 Introdu ct ion to Pro gramming the A gilent Tech nologies 1670G-S eries Logic A nalyzer.
Introd uction This chap ter intro duces you to the basi cs o f remote pr o gramming and is org anized in two secti on s . The firs t section , "Talk ing to th e Ins trument," concen trates on initiali zing the bu s, program syntax an d the eleme nts of a s yntax i nstructi on.
Talki ng to the Instr umen t In g eneral, compu ters actin g as controll ers communicate wi th th e instru ment by sendi ng an d rece iving message s over a remote interface, such as G PIB or R S-232 - C.
Initialization To make sure the bus and all appropriate i nterfaces are in a k nown state, begin every program wit h an initial izatio n st atement . BASIC provi des a CLEAR com mand t hat clears t he interface buffer. If yo u are using G PIB, CLEAR will also reset the parser in the logic analyz er.
Inst ruction Syntax To program the logic analyze r remotely, you must have an understanding of the command format and structure. The IEEE 488.2 standard governs syntax rules pertaining to how individual element s, such as he aders, separators, parameters and terminat ors, may be grouped toge ther to form complet e instructi ons.
Device A ddress The locati on whe re the devi ce address mus t be specifi ed als o depends o n th e host language that you are using. In some languages, this could be specified outside the output comm and. In BASIC, this is always specifie d after the keyword OUTPU T.
When yo u look up a que ry in this prog rammer’s reference, yo u’ll fi nd a paragraph labe led "Returne d F ormat" unde r the one labele d "Query.
Header Types There are three types of headers: Simple Command, Compo und Command, and Commo n Command. Simple Com m and H eade r Simple co mmand he aders contai n a single key word. START and STO P are example s of simple command headers typi cally used i n this logic analyzer.
Com mon C o mmand He ader Common comm and headers cont rol IEEE 488. 2 functio ns within t he logi c analyzer, such as , clear st atus. The syntax is: *<command header><terminator> No whi te space o r se parator is allo wed bet ween the as teri sk and the command header.
Query Usage Logic anal yzer ins truct ions that are immediate ly fo llowed b y a quest ion mark (?) are queries . After receivi ng a query , the lo gic analyzer pars er place s the response in the output buffer. The output mess age remains in the buffer until it is read o r until ano the r logic anal yzer ins truct ion is i ssued.
Program Header Opt ions Program headers can b e s ent using any comb ination o f uppercas e or lowercase ASCII characters. Lo gic analyz er response s, however, are al ways returned in uppercase.
Parameter Data Types There are thre e mai n types o f data which are used in parameters . They are numeric, st ring, and keywo rd. A fourth ty pe, b lock data, is us ed o nly for a fe w instructi ons:.
When a syntax definit ion specifies that a number is an integ er, t hat means that the number shoul d be whole. Any fractional part would be ignore d, truncating the numb er. Numeric paramete rs that accept fractio nal values are called real numb ers.
Select ing Multip le Subsystems You can send multiple program commands and program queries for different subsys tem s on the same line by se parating each co mmand with a sem icol on. The colon foll owing the sem icolon e nabl es you t o enter a new sub system.
Rece i v ing Inform ation from the Instr ume nt After rece iving a query ( logic analyz er instruct ion fol lowe d by a q uestio n mark), the lo gic analyz er interro gate s the req uested functio n and pl aces the answer in it s output queue. The answer rem ains i n the out put que ue unt il it is read, or, until anot her co mmand is issued.
Response Header Options The format of t he returned ASCII string depends on the current sett ings of the SYSTEM H EADER and LON G F ORM commands. The general fo rmat is <instruction_header><s.
Response Data F ormats Both numb ers and strings are returned as a s eries of ASCII charact ers, as describe d in the fo llowing sections . Keywo rds in the data are ret urned i n the same form at as the header, as specifie d by t he LON Gform co mmand.
String Variables Because there are so many ways to code num bers, the Agilent Technologi es 1670G -series log ic analyzer handles almost all data as ASCII strings. Dependi ng o n your hos t language, you may be able to use othe r types whe n reading in re spons es.
The output of the logic analyzer may be numeric or character data depending on what i s querie d. Refer t o the s pecific commands, i n Parts 2 and 3 of this guide, fo r the formats and ty pes of dat a returned fro m querie s.
This time the format of the number (such as, whether or not e xpone ntial notati on is used) is dependent upon your host lang uage. The output will resemb le 1.
Multiple Queries You can send multiple queries to the logic analyzer within a single pro gram message, but y ou m ust also read t hem back within a singl e program m essag e. This can b e accomplishe d by either reading them back into a st ring variable or into mul tiple numeric variable s.
Instrument Stat us Status re gist ers track the current st atus of t he l ogic analyz er. By checki ng the inst rument status , y ou can fi nd out whether an operat ion has b een complet ed, whether the inst rument is receiving t riggers, and more. Chapter 6, "St atus Report ing, " explains ho w to check t he status of the instrument .
2 Programming Over GPIB.
Introd uction This secti on d escrib es the GP I B interface functi ons and some gene ral con cepts of G PIB. In gene ral, thes e functio ns are defin ed by IEE E 488 .1 (GPI B bus s tand ard). The y d eal wi th gene ral b us manag ement issu es, as well as mes sages which can be sent over the bus as bus commands.
Interface Capabilit ies The interface capabi lities of the Agilent 167 0G-se ries logic analyze r, as defined by IEEE 488 .1 are SH1, AH1, T5, TE0, L3, LE0, SR1, RL1, PP0 , DC1, DT1, C0 , and E2. Com mand and Data Concepts GPIB has two mo des of o perat ion: com mand mod e and data m ode.
If the co ntro ller addresse s the ins trume nt to talk, i t wi ll remain co nfigured to talk until it receives: • an interface clear m essage (IF C) • another i nstrum ent’s talk addres s (OTA).
Example F or e xample, if the ins trume nt address i s 4 and t he interface sele ct code i s 7, the inst ructi on will caus e an actio n in the i nstrum ent at de vice addre ss 704.
Bus Commands The follo wing commands are IEEE 4 88.1 bus co mmands (A TN true). IEEE 488.2 de fines many of t he actions which are taken when the se co mmands are received b y t he logi c analyz er.
3 Pro gramm ing Over R S- 232-C.
Introd uction This chap ter des cribes the inte rface function s and some general con cepts of R S-232-C. The RS-232 -C interface on this instr umen t is Agilen t’s i mplemen tation of E IA R ecomme.
Interface Operation The Agilent 1 670G-seri es logi c analyzer can b e programme d wit h a contro ller over RS-2 32-C usi ng either a mini mum three- wire or ex tended hardwi re interface. The operatio n and exact connecti ons for these interfaces are describe d in more detai l in the foll owing sections.
Minimu m Three-Wire Interface with Software Protocol With a three-wire int erface, the software (as compare d to interface hardware) co ntro ls t he data flo w bet ween the l ogic analyz er and the control ler. The three-wi re interface provides no hardware means to control data flow betwee n the control ler and the lo gic analyze r.
• Pin 7 SG ND (Si gnal Ground) • Pin 2 TD ( Transmi t Dat a from logic anal yzer) • Pin 3 RD (Re ceive Data int o log ic analyze r) The additio nal lines y ou us e depends o n your cont rol ler’s i mplementat ion of the ex tended hardwire int erface.
Cable Examples HP 900 0 Series 300 Figure 3-1 is an exampl e of how to connect t he Agile nt 1 670G-se ries to the HP 98628A inte rface card of an HP 9000 series 300 controll er. F or more informati on o n cabling , refer to the refe rence m anual for yo ur specific control ler.
Figu re 3 -2 25- pin (F) to 25-pi n (M) Cab le Figure 3-3 sho ws the s chemat ic of a 2 5-pi n male to 25-pi n male cab le 5 meters in le ngth. The fo llowing cabl e supports thi s configurat ion: •.
Figure 3-4 shows the schemat ic of a 9-pin female to 25-pin male cabl e. The followi ng cab les suppo rt t his config uratio n: • 2454 2G, DB-9( F) to DB-25 (M), 3 meter • 24542H , DB-9( F) to D B-2 5 ( M), 3 meter, shie lded • 4591 1- 6000 9, D B-9(F ) to D B-2 5(M) , 1 .
Interface Capabilit ies The baud rat e, stopbi ts, parity, pro tocol , and dat abits must be co nfigured exactl y the sam e for b oth the cont roller and the log ic analyze r to properly communicat e over t he RS-2 32-C bus.
The contro ller and the Agilent 1 670 G-serie s logic analyz er must be in th e same bit mode to properly communicate over the RS-232-C. This means that the control ler must have the capability to send and recei ve 8-b it data.
Lo ckout Com mand To lock out the front -panel cont rol s, use t he instrume nt co mmand LO CKout. When this functio n is on, all co ntrols (e xcept the power switch) are entirely locked out . Local cont rol can only be restored by sending the :LOCKout OFF command.
3– 12.
4 Pro gramm ing an d Docu mentation Co nven tion s.
Introd uction This chap ter covers the programmin g conven tions used in programmin g the in strumen t, as well as the documentati on con ventions used in th is manual . Th is chap ter also contains a d etail ed descri ptio n of the comm and tree and command tree traversal.
Truncation Rule The truncation rule for the keywords used in headers and parameters is: If the lo ng form has four or fewer characters, there is no change in the short form. When the long form has more than four characters the short form is just t he first fo ur charact ers, unless the fourt h charact er is a vo wel.
Infinity Representation The represent atio n of infini ty is 9 .9E+37 fo r real numb ers and 32 767 fo r integers . This is also the value returned when a measurement cannot be made. Sequ ential and Over lapp ed Comman ds IEEE 48 8.2 m akes the dist inction betwee n seq uential and ove rlapped commands.
Not ation Convent ions an d Def inition s The follo wing convent ions are us ed in this manual when des cribing programming rules and exampl e. < > Angular b racket s enclos e words o r characte rs that are used to symbo li ze a program code parameter or a bus command ::= "is define d as.
Comm and Types As shown in chapter 1, in the topic, "Header Types," there are three types of headers. Each header has a corresponding command type . This section shows ho w the y relate to the com mand tree. System Com m ands The s ystem commands resi de at the top le vel of the com mand t ree.
The follo wing exam ples are writ te n using HP BASIC 6.2. The q uot ed string is placed on t he b us, fol lowe d by a carri age re turn and linefe ed ( CRLF) . The three Xs (XXX) s hown in thi s manual after an EN TER or O UTP UT stat ement represents the device address required by yo ur control ler.
Figu re 4 -1 Agilent 16 70G- Series Command Tr ee Programming and D ocument ation Con ventio ns Tree Tra vers al Rules 4– 8.
Figu re 4 -1 (c ont inu ed) Agil ent 16 70G- Ser ies Comma nd Tree ( cont inue d) Programming and D ocument ation Con ventio ns Tree T raversal Rules 4–9.
Tab le 4-2 Alph abet ic Command Cross -Referen ce Command Subs yst em ACCumulat e SCHart, SWA Veform , TWAV eform, ACQMod e TFO Rmat ACQuisition STRigger, SW AVe form, TTRigger, TW AVefor m ARM MACHin.
Tab le 4-2 ( contin ued) Alph abet ic Command Cross -Referen ce Command Su bsystem OTIMe TWAV eform, WLISt OV ERlay SLI St OVERView SP A OV STatist ic OV ERView PACK MME Mor y PA TTer n SYMB o l PRINt.
Com mand Set Organization The command s et for t he A gilent 1 670G -series logic analy zers is divide d into 19 separate groups : commo n commands, syst em commands, and 17 set s of subsys tem commands. Each o f the 19 groups o f commands is de scribed i n a separate chapter in Parts 2 and 3, "Commands.
• TTRigger - allows access to the timing trig ger functions. • TWAVe form - allows access to the timing waveform s funct ions. • TLISt - all ows access to the timing list ing functions. • SYMBol - al lows access to the sy mbol specificatio n funct ions.
4– 14.
5 Message Commun ication and System Functions.
Introd uction This chap ter des cribes the ope ration of ins truments that oper ate in compl iance with the IEEE 4 88.2 (syntax) s tand ard . It is in ten ded to give you enou gh bas ic information about the IEEE 48 8.2 standard to succes sfully p rog ram the log ic an alyzer.
Protocols The protocols of IEEE 4 88.2 define the overall scheme used b y the control ler and the ins trume nt to communicate . This include s defi ning when it is appropriate for devices to talk or listen, and what happens when the protocol is not followe d.
Protoco l O ve r view The instrume nt and controll er co mmunicate us ing <program message> s and <response message> s. These mes sages serve as t he contai ners into which sets of program commands o r instrume nt respons es are placed.
Protoco l Ex ceptio ns If an error occurs during the information ex change, the exchange may not be complet ed in a normal manne r. So me of t he proto col except ions are shown belo w. Comm an d Error A com mand error wil l be report ed if the inst rument detects a sy ntax erro r or an unrecogniz ed comm and header.
Figu re 5 -1 Exampl e Syn tax Di agra m Mess age Commun ication an d Sy s t em Func tions Sy ntax D iag rams 5– 6.
Syn tax Over view This overvie w is intended t o g ive a qui ck glance at t he syntax defined b y IEEE 488.2. It will help you understand many of the things abo ut the syntax you need to kno w. IEEE 488.2 defines the bl ocks used to build messages which are sent to t he instrument .
Figu re 5 -2 <p ro gr am m es sa ge > Pa rse Tre e Mess age Commun ication an d Sy s t em Func tions Syn t ax Ov er vi e w 5– 8.
Upper/Low er Case Equ ivalence Upper and lo wer cas e lett ers are equivale nt. The mne moni c SINGLE has the same sem antic meaning as t he mnemo nic single . <white space> <white space> is defined to be one or more characters from the ASCII set of 0 - 32 decimal, excluding 10 decim al (N L).
Suffix Uni t The suffix units that the ins trument wi ll acce pt are sho wn i n ta bl e 5- 2. Tab le 5-2 <suffix unit> Suff ix Refer ence d Unit V Volt S Second Mess age Commun ication an d Sy s.
6 Status R eporting.
Introd uction Statu s reportin g al lows you to u s e information about the instru me nt in your prog rams, so that you have better control of the measure ment proces s. For example, you can use status reporti ng to d etermine whe n a measuremen t is complete, thu s contro lling your program, so that it d oes not get ahead of the i nstrumen t.
Figu re 6-1 Stat us B y te Stru cture s and Conce pts Stat us Repor ting 6–3.
Event Status Register The Event St atus Regi ster is an IEEE 488. 2-defined re gister. The bits in this registe r are latched. Once an event happens which sets a b it, that bit will only b e cleared i f the regi s ter is read. Service Request Enable Register The Service Req uest Enabl e Register is an 8-b it regis ter.
MSG - m essage Indicates whether there i s a message in t he message queue (N ot implement ed in the Agilent 1670G- serie s logic analyzer) . PO N - po wer on Indicates po wer has been turned o n. URQ - user request Always ret urns a 0 fro m the A gilent 1 6 70G -series logic analy zer.
LCL - remot e to lo cal Indicates whe ther a remote to local t ransitio n has occurred. MS B - mod ule summar y bi t Indicates t hat an enab l e event in one of t he st atus regi sters has occurred. Key Features A few of the most import ant features of Status Report ing are listed in the followi ng paragraphs.
Figu re 6-2 Servi ce R equest Enabling Serial Poll The Agilent 1 670G-seri es logi c analyzer support s the IE EE 488.1 serial po ll feature. When a se rial poll of the i nstrum ent is re queste d, the RQ S bit is returned o n b it 6 of t he status byte .
Using Serial Po ll (GPI B) This exam ple will show ho w t o use t he service re que st by conduct ing a seri al poll o f all instrument s on the G PIB b us. In this example, assume t hat t here are two instrument s on the bus: a logic analyzer at address 7 and a printer at address 1.
7 Error M essages.
Introd uction This chapter l ists th e error messages that are r eturned by th e Ag ilent 16 7 0G-ser ies log ic analyzers . 7– 2.
Device Dependent Errors 200 L abel no t foun d 201 Pat tern string invalid 202 Quali fier i nvalid 203 Dat a not avail able 300 RS- 2 32-C error Com mand E rrors –100 Co mmand error ( unknown co mma.
Execut ion E r rors –200 Can not do (ge neric e xecution erro r) –201 Not ex ecutab le in Lo cal Mo de –202 Setti ngs lost due to return-to -local o r po wer on –203 Trigg er ignored –211 Le.
–321 RO M checksum –322 H ardware and firmware incompatib le –330 Powe r on tes t failed –340 Self te st failed –350 Too many errors ( error queue o verflow) Query Errors –400 Q uery error (generic) –410 Query INTERRUPTED –420 Q uery UNTERMIN ATED –421 Query received.
7– 6.
Pa rt 2 Instrument C ommands.
.
8 Com m on C ommand s.
Introd uction The common command s are d efined by th e IEEE 488 .2 s tandard . These commands mu st be s u ppo rted by all instru m e nts that comply with this stand ard. R efer to figu re 8-1 an d table 8-1 for the comm on command s syntax diagr am and par ameter values .
Example Th is pro gram mes sage in itiali zes th e dis k, sele cts th e logic analyzer, the n store s the file. In this examp le, :MMEMORY must be s ent again in order to reente r th e memory s u bsystem and store the file.
Figu re 8-1 Common C ommands Sy ntax Diagr am Common Command s 8– 4.
Tab le 8-1 Common Command Parame ter Values Par ameter Val ues mask An int eger, 0 t hrough 2 55. pre_mas k An intege r, 0 through 6 5535. *CLS ( Clear Status) Command *C LS The *CLS commo n command clears al l event stat us regist ers, que ues, a nd data struct ures, including t he device defined erro r q ueue and st atus by te.
*ESE (Event S tatus Enable) Command *ES E <m as k> The *ESE command sets the Standard Event Status Enable Register bits. The Standard Event Status Enable Re gister co ntains a b it to e nable t he status indicat ors detailed in table 8-2.
Tab le 8-2 Sta ndard Ev ent Sta tus En able Regi ster B it Po s itio n B it We ig ht En ab le s 7 128 PON - P ower O n 6 64 URQ - User Req ues t 5 32 CME - Command Er r or 4 16 EXE - Exe cution Error .
Table 8 -3 shows the Standard Event Status Re gister. The tabl e details the meaning o f each bit po sition in the St andard Event St atus Register and the bit weight. When you read Standard Event Status Register, the value returned is the total bit weight of all the b its that are high at the t i me you read the b y t e.
*IDN (I d entification Numb er) Query *I DN? The *IDN? query allows the instrum ent to identify itself. It returns the string: "A gi le nt,1 670G ,0,R EV < revi sion _cod e>" An *IDN? que ry must be the last query in a message . Any querie s after th e *IDN? in the program message are ignored.
Figu re 8-2 *I ST Da t a S t ruc ture Common Command s *IST ( Indiv idual Status ) 8– 10.
*OPC (Operation Complete) Command *O PC The *OPC command will cause the instrument t o set t he operat ion complete bit in the Standard Event Status Regis ter when all pending device operatio ns have finished. The commands which affe ct this bit are the overlapped commands.
*OPT (Option Identif ication) Query *O PT ? The *OPT? query ident ifies the software installed in the Agilent 1670G -series logic anal yzer. This query re turns nine paramete rs.
*PRE (Parallel Poll Enable Register Enable) Command *PR E <m as k> The *PRE co mmand sets the Parallel Poll Regi ster enab le bits. The P arallel Poll Enable Regis ter contains a mask value that is A N Ded with the bits in the Status Bi t Regist er to enable an "ist" duri ng a parallel poll .
Tab le 8-4 Para llel Poll Enab le Register B it Po s itio n B it We ig ht E n ab les 15 -8 Not use d 7 12 8 Not use d 6 64 MSS - M aster Summa ry Statu s 5 3 2 ES B - E ven t St at us 4 16 MAV - M ess.
*SRE (Ser vice Request Enable) Command *SR E <m as k> The *SRE co mmand set s the Servi ce Reques t Enabl e Register b its. The Service Request Enable Registe r contains a mask value for the b its to be enabled in the St atus Byte Register.
Tab le 8-5 A gi l ent 1 6 70 G-Seri es Serv ice Req ues t Enabl e Reg ister B it Po s itio n B it We ig ht E n ab les 15 -8 not us ed 7 12 8 not us ed 6 64 MSS - Mas ter Summary Status ( always 0) 5 3.
Tab le 8-6 St atus By te Re gis te r Bit Pos ition B it Weight Bit Name Condit ion 7 12 8 not us ed 6 64 MSS 0 = instrumen t ha s no reason f or service 1 = instrumen t is r equesting se rvice 5 32 ES.
*TST ( Test) Query *T ST ? The *TST ? query returns the res ults of the power-up sel f-test. The re sult of that t est is a 9- b it m apped value which i s placed in the o utput queue. A one in t he correspo nding b it means that the tes t failed and a zero in t he correspondi ng bit means that the t est passe d.
*WA I (W ai t) Command *W AI The *WAI co mmand causes the de vice to wait until com pleting al l of the overlapped co mmands before execut ing any further com mands or querie s.
8– 20.
9 Instrument C ommands.
Introd uction Ins trument command s control th e basi c operatio n o f the instru ment for the A gilent 1670 G-serie s l ogic analyze rs. The Agile nt 1670G -se ries log ic analyzers are simi lar to an 1650 0 logic an alysis sy stem with a singl e logic an alyzer modu le (Agil ent 1670G).
Figu re 9-1 Mainf rame C ommands Synt ax Di agram Instr ument Comman ds 9–3.
Figu re 9-1 (cont inued) Mainf rame C ommands Sy ntax Diagram (cont inued) Instrume nt Commands 9– 4.
Tab le 9-1 Ma in f rame Parame ter Values Par ameter Val ues value An intege r from 0 t o 6553 5 module An intege r 0 or 1 (2 th r ough 10 unused) menu An intege r enable_v alue An intege r from 0 t o.
BEE Per Command :B EE Pe r [{ ON |1 }| {O FF |0 }] The BEEPe r command se t s the beeper m ode, which t urns t he bee per sou nd of the instrument on and off. When BEEP er is sent with no argument, the beeper will be sounded without affecting the current mode .
CAPabilit y Query :C AP ab ilit y? The CAPab ility? q uery ret urns the sy s tem lang uage and lower leve l capabili ty sets i mplemente d in the de vice. Tabl e 9-2 list s the capab ility sets i mplemente d in the A gilent 1 670G-se ries logic anal yzer.
CARDcage Query :C AR Dc age? The CARDcage? que ry returns 10 inte gers which identify the card setup that is installed in the logic analyz er. The Agilent 1670G -series logi c analyzers always ret urn the same series o f intege rs since t he analyze rs are not expandab le the way an 16500 logic analysis sy stem is .
CESE (Combin ed Event Status Enab le) Command :C ES E <v al ue > The CESE command sets the Comb ined Event Status Enab le register. This registe r is the enable regist er fo r the CESR register and contains the combi ned status of all o f the MESE (Module Event Status Enab l e) reg isters of the Agil ent 1670 G-serie s lo gic analyzers.
CESR (Combin ed Event Status Register) Query :C ES R? The CESR? q uery ret urns the co ntents of t he Comb ined Event Stat us registe r. This regi ster cont ains the combine d status of all o f the MESRs (Module Event Status Regis ters) of the A gile nt 167 0G-se ries.
EOI ( End Or Identify) Command :EO I {{ ON |1 }| {O FF |0 }} The EOI command specifies whether or not the last byte of a reply from the instrument is to be s ent with the EOI bus contro l l i ne set true or not. If EOI is turned off, the logic analyzer will no longer be sending IEEE 488.
LOCKout Command :LO CK ou t {{ ON |1 }| {O FF |0 }} The LOCK out com mand locks out o r restore s front pane l operati on. Wh en this funct ion is on, all contro ls (except the power swi tch) are entirely lock ed out .
Tab le 9-5 Me nu Paramet er Values Paramet ers Menu 0,0 System Exte rnal I/O 0,1 System Hard Disk 0,2 Sy stem Flexible Disk 0,3 System Uti l ities 0,4 System Test 1,0 Analyzer Con figuration 1,1 Forma.
MESE<N> ( Modu le Event Stat us Enable) Command :ME SE <N > <e na bl e_ va lu e> The Agilent 167 0G-seri es logic analyz ers support t he MESE co mmand for compatib i l ity with other logic analyzer program s but do not tak e any action when the co mmand is sent.
Tab le 9-6 A gilent 167 0G-Seri es L ogic A nal yzer Ma i nframe (Inte rmodule) Modul e Event Status Enable Regist er B it Po s itio n B it We ig ht E n ab les 7 12 8 not us ed 6 84 not us ed 5 32 not.
MESR<N> (Module Event Status Register) Query :M ES R< N>? The MESR? q uery ret urns the co ntents of t he Module E vent Stat us register. The <N > index specifies t he m odule. F or the Agilent 1670G- series, t he <N> index 0 or 1 refers t o system or l ogic analyze r respective ly.
Tab le 9-8 A gilent 167 0G-Seri es L ogic A nal yzer Sy s tem Modul e Even t Statu s Regist er (<N>= 0 ) B it B it We ight B it Nam e Co nd it io n 7 128 not us ed 6 64 not us ed 5 32 not us ed .
RMODe Command :RM OD e {S IN Gl e| RE Pe ti ti ve } The RMOD e command s pecifies t he run mode for t he logic analyz er. After s pecify ing the ru n mode, use th e STARt command to start the acqu isition. Example O UTPU T XXX; ":RM ODE SI NGLE " Query :R MO De ? The query returns the current s etting.
<hour> integer from 0 to 23 <minute> integer from 0 to 59 <second> integer from 0 to 59 Example This e xample s ets the real-tim e clock for 1 January 1 992, 20:00:0 0 (8 P M). O UT PU T XX X; ": RT C 1, 1, 19 92 ,2 0, 0, 0" Query :R TC ? The RTC? q uery returns the real-t ime clo ck sett ing.
The command parser in th e Agilent 1 6 70 G-series logic ana lyzer is des igned to accept p rograms written f or the 1 6500 log ic analys is s y st em with an 1 6550 A logic analy zer module; howev er, if the par ameters 2 through 10 ar e sent , an Agilent 167 0G-series logic analyzer will take no act ion.
SET Color Command :S ET Co lo r {< co lo r> ,< hu e> ,< sa t> ,< lu m> |D EF au lt } The SETColor comm and is used t o change a grayscale shade on the logic analyzer screen, or t o return to the default screen colors. The colors on a remote display are not affected.
ST A Rt Command :S TA Rt The STARt com mand s tarts the lo gic analyz er running in t he specifie d run mode ( see RMO De). The STARt command is an ove rlapped co mmand. An o v erlapp ed command is a command th at allows execut ion of s ubsequent commands while t he device operatio n s initia ted by the overlapped c ommand are st ill in progres s.
XWINdow Command :X WI Nd ow { OF F|0} : XW IN do w {O N| 1} [, <d is pl ay n am e> ] The XWIN dow command ope ns or clo ses a window on an X Window dis play server, t hat is, a netwo rked workst ation o r personal comput er with X Wi ndow software.
9– 24.
10 Mod ule Level C ommands.
Introd uction The lo gic an alyzer modu le-level co mmands acces s th e glob al function s of th e Agile nt 1 670G-se ries lo gic analyzer . These co mmands are: • ARMLin e • MACHi ne • WLISt .
Modul e L evel Sy ntax Di ag ram Figu re 10 -1 Modu le L evel Commands 10 –3.
Tab le 10 -1 Modul e Lev el Paramet er Value s Paramet er Type of Para meter or Command Ref erence machine_num MA CHin e{1| 2} arm_par m arm parame t e rs see c hapter 13 assign_p arm assignmen t para.
ARMLin e Command :AR ML in e MA CH in e{ 1| 2} The ARMLine command selects which machi ne (analyz er) generat es the arm out signal. Thi s command is only valid when two analyzers are on.
Query :D BL oc k? The DBLo c k query ret urns the current data b lock format sele ction. Returne d Format [: DB Lock ]{PA CKed | U NPac ked} <NL> Example O UTPU T XXX; ":DB Lock ?" MAC.
11 SYSTem Su bsyst em.
Introd uction SYSTem su b sys tem command s contro l function s that ar e common to the entire Agi lent 1670G-seri es logic analyzer, incl uding formatting query respons es and enabli ng read ing and writing to the advis ory line of the in str ument.
Figu re 11 -1 SYSTem Subsy s tem Commands S yn tax Dia gr am SYSTem Sub system 11 –3.
Tab le 11 -1 SYSTem Parameter Va l ues Par ameter Val ues block_da t a Dat a in IEEE 4 88.2 format . strin g A str ing of u p to 68 alph anume ric characte rs.
DATA Command :S YS Te m:DA TA <bl oc k_ data > The DATA co mmand allo ws you t o send and re ceive acquired dat a to and from a co ntroller in blo ck form.
Query :S YS Te m:DA TA ? The SYSTem:DA TA query re turns the block data. The dat a sent b y the SYSTem:DATA? query reflects the config uration of the machines when the last run was performed. Any changes made since then throug h eit her front-panel operatio ns or programmi ng commands do not affect the stored configurati on.
ERR or Query :SY ST em :E RR or ? [N UM er ic |S TR in g] The ERRor q uery returns the oldest error from the erro r queue. The o ptional parameter de termines whethe r the error st ring should be returned alo ng with the erro r number. If no parameter is rece ived, or if the parameter is NUMeri c, then only the error num ber is returne d.
HEADer Command :SY ST em :H EA De r {{ ON |1 }| {O FF |0 }} The HEAD er comm and tells the instrument whether or not to o utput a header for query responses .
LONGform Command :S YS Te m:LO NG form { {O N|1} |{ OFF| 0} } The LON Gform co mmand sets t he longfo rm variable , which tel ls th e instrument how to format que ry response s. If the L ON Gform co mmand is set to OF F, command heade rs and al pha arguments are sent fro m the i nstrument in the ab breviated fo rm.
PRINt Command :SYSTem:PRINt ALL[,DISK, <pathname>[,<msus>]] :SYSTem:PRINt PARTial,<start>,<end> [,DISK, <pathname>[,<msus>]] :SYSTem:PRINt SCReen[,DISK, <pathnam.
The print q uery shoul d NOT b e sent with any o ther command o r query o n the same com mand line. The print query never ret urns a header. Also , s ince response data from a print query may be sent directly to a printer without modificat ion, the data is no t returne d in b lock mode.
Query :S YS te m:SE Tu p? The SYSt em:SETup? q uery ret urns a block of data that co ntains t he current configurati on to the controll er. Returne d Format [: SY St em:S ETup ] <b lock _dat a>&.
12 MMEMory Subsystem.
Introd uction The M MEMory (mass memory) sub system co mmands provid e access to th e dis k drives . T he Agi lent 167 0G-seri es logic anal yzers support both LIF (Logical Information Format) and DOS (Disk Oper ating System) formats .
Figu re 12 -1 MMEMo ry S ubsystem Command s Syntax Diagr am MMEM ory Sub system 12 –3.
Figu re 1 2-1 (Con t inued ) MME Mory S ubsyste m C ommands Synt ax Di agram ( continue d) MMEM o ry Subs ystem 12 –4.
Figu re 1 2-1 (Con t inued ) MME Mory S ubsyste m C ommands Synt ax Di agram ( continue d) MMEM ory Sub system 12 –5.
Tab le 12 -1 MMEM ory Paramete r Values Par ameter Val ues auto_ file A st ring of u p to 10 alphanume ric charac ters for LI F in the following form: "NNNNNNNNNN" or A st ring of u p to 12 alphanume ric cha racters f or DOS in the followi ng form: "NNNNNNNN.
AUTo load Command :M ME Mo ry :A UT ol oa d {{ OF F| 0} |{ <a ut o_ fi le >} }[ ,< ms us >] The AUToload command contro l s the autoload feature which designat es a set of config uration files t o be lo aded automat icall y the nex t time t he i nstrument is turned on.
<auto_file> A string of up to 10 alphanumeric characters for LIF in the following form: NNNNNNNNNN or A s tring of up to 12 alphanumeric characters for D O S in the followi ng form: NNNNNNNN.
Returne d Format [: MM EMor y:CA Talo g] < bloc k_da ta> <block_data> ASCII block cont aining < filename> <file_type> <file_description> Example This e xample i s fo r se.
COPY Command :M ME Mo ry :C OP Y <n am e> [, <m su s> ], <n ew _n am e> [, <m su s> ] The COPY command copies one file to a new file or an entire disk’s conte nts to ano ther disk . The two <name> parameters are t he filenames.
DOWNload Command :M ME Mo ry :D OW Nl oa d <n am e> [, <m su s> ], <d es cr ip ti on >, <t ype> ,< bl ock_ da ta> The DOWNload command downlo ads a file to the mass storage device.
Tab le 12 -2 File Ty pes Fi l e Fi l e T y pe 1660E/ ES and 16 70G ROM Soft ware -155 99 1660E/ ES and 16 70G Sys tem Sof tware -15598 1660E/ ES and 16 70G Sys tem Ext ernal I/O -1 5605 1660 E/ES Logi.
INI Tialize Command :M ME Mo ry :I NI Ti al iz e [{ LI F| DO S} [, <m su s> ]] The INITialize comm and formats the disk in eithe r LIF (Lo gical Informatio n Format ) or DOS ( Disk O perating Sy stem) . If no fo rmat is specifi ed, then th e initiali z e command will format the disk in the LIF format .
LOAD[:CONFig] Command :MM EM or y: LO AD [: CO Nf ig ] <n am e> [, <m su s> ][ ,< mo du le >] The LOAD command loads a configuration file from the disk into t he logi c analyzer, s o ftware opt ions, or the system . The <name> parameter s pecifies the file name from t he disk.
LOAD:IASSembler Command :M ME Mo ry:L OA D:IA SS em bler < IA_n am e> [,<m su s>], {1 |2 } [, <mod ul e> ] This variatio n of the LOAD co mmand allows inverse assemb ler files to be loaded into a module that perform s state analysis.
MKDir (Make Directory) Command :M ME Mo ry:M KD ir < di re ctor y_ name > [, <msu s> ] The MKDir command allows you to make a directory on the hard drive or a DOS disk in the fl exib le drive.
MSI (Mas s Storage Is) Command :M ME Mo ry:M SI [<m su s> ] The MSI command sele cts a default mass storag e device. <msus> Mass Sto rage Unit specifier.
PA CK Command :M ME Mo ry :P AC K [< ms us >] The PACK command pack s the files o n a LIF disk. If a DOS di sk is in the drive when t he PACK command is sent, no action is take n. <msus> Mass Sto rage Unit specifier. INTernal0 for the hard disk dri ve and INTernal1 for the flexible disk drive.
PWD (Present Working Dir ecto ry) Query :M ME Mo ry :P WD ? [< ms us >] The PWD query returns the present working direct ory for the specifie d drive. If the <msus> o ption i s not s ent, the prese nt worki ng directo ry will be returned fo r the current drive.
<msus> Mass Sto rage Unit specifier. INTernal0 for the hard disk dri ve and INTernal1 for the flexible disk drive. <new name> A s tring of up to 10 al phanumeric characters for LIF in the following form: NNNNNNNNNN or A s tring of up to 12 alphanumeric characters for D O S in the followi ng form: NNNNNNNN.
Example OUT PU T XX X; ": MM EM :S TO R ’D EF AU LT S’ ,’ SE TU PS F OR A LL M OD UL ES ’" O UT PU T XX X; ": MM EM OR Y: ST OR E: CO NF IG ’S TA TE DA TA ’, IN TE RN AL 0, ’A NA LY ZER 1 CO NFIG ’,1" The appro priate module de signator " _X" is adde d to all file s when t h ey are store d.
Example 1 0 DI M Bl ock$ [320 00] !a ll oc ate enou gh m emor y fo r bl ock data 2 0 DI M Sp ec ifie r$[2 ] 30 O UT PU T XX X; ": EO I ON " 40 O UT PU T XX X; ": SY ST EM H EA D OF F&qu.
Pa rt 3 Logic A nalyzer C ommands.
.
13 MAC Hine Sub system.
Introd uction The M ACHine subsys tem contains th e commands that contro l the machine level of operatio n o f the logic analyzer. The function s of five of these commands resi de in the State/Timin g Config uration menu.
MACHi ne Subs y ste m S yntax D iagram Figu re 13 -1 MACH ine Subsys tem 13 –3.
Tab le 13 -1 MACH ine Subs ystem Pa rameter Va l ues Par ameter Val ue arm_sou rc e { RU N | IN Te rm od ul e | MA CH in e {1 |2 }} pod_lis t {N ON E | <p od_n um>[ , <pod _num >].
ARM Command :M AC Hi ne {1 |2 }: AR M <a rm _s ou rc e> The ARM command specifies the arming source of the specified analyze r (machine) . The RU N opt ion disables the arm s ource. For example, if you do not want to use either t he interm odule b us or the other m achine to arm the current machine , you spe cify the RU N opt ion.
ASSign Command :M AC Hi ne{1 |2 }:AS Si gn <po d_ list > The ASSign co mmand assigns pods to a part icular analyz er (machi ne). The ASSign command wil l assign two pods for each pod number you specify because pods must be assigned to analyzers in pairs.
LEVelarm Command :M AC Hi ne{1 |2 }:LE Ve la rm < ar m_le ve l> The LEVelarm command allo ws you to specify the sequence level for a specified machine that will be armed by the Intermodul e Bus or the other machine. This command is onl y valid if the s pecified machine is on and the arming so urce is not set to RUN wit h the ARM command.
NAME Command :M AC Hi ne{1 |2 }:NA ME < mach in e_na me > The NAME command allows you to assig n a name of up to 10 characters to a particular analy z er ( machine) for eas ier identi fication.
<new_text> string o f up to 8 alphanumeric characters <state_terms> {A|B|C|D|E|F|G|I| RANGe1 | RANGe2 | TIMer1 | TIMer2} Example OUT PU T XX X; ": MA CH IN E1 :R EN AM E A, ’D AT A.
Query :M AC Hi ne{1 |2 }:RE SO UR CE? The RESource q uery returns t he current resource terms assigned t o the specified anal y zer. Returne d Format [ :M AC Hi ne {1 |2 }: RE SO UR CE ] <r es _i d> [, <r es _i d> ,.
14 WLISt Subsystem.
Introd uction The commands in the WLISt (Waveforms/LIStin g) subsystem control the X a nd O marke r placemen t on the waveforms portion of th e mixed mode disp lay.
WLISt Subsyst em Syntax Di a gram Figu re 14 -1 WLI St Subsy stem 14 –3.
Tab le 14 -1 WLISt Subsy stem Paramet er Values Par ameter Val ue delay_va l ue real number between - 2500 s and +250 0 s module_spe c 1 bit_id integer from 0 t o 31 label_na me string of up to 6 alph.
DELay Command :W LI St :DEL ay <de la y_ valu e> The DELay command specifies the amount o f time be tween the timing trigger and the horizo ntal cent er o f the the timing waveform displ ay. The allowab le values fo r delay are − 25 00 s to +25 00 s.
INS ert Command :W LI St :I NS er t [< mo du le _s pe c> ,] <l ab el _n am e> [, {<bi t_ id >|OV ER lay| AL L} ] The INSert command inserts waveforms in the timing waveform display. T he waveforms are added from top to bot tom up to a maximum of 96 waveforms.
LI N E Command :W LI St :L IN E <l in e_ nu m_ mi d_ sc re en > The LINE comm and allows you to scrol l the timing analyzer list ing vertically. The command s pecifies the st ate line numb er relati ve to the t rigger t hat the analyzer highli ghts at the center of the screen.
OT IMe Command :W LI St :OTI Me <ti me _v alue > The OTIMe co mmand positions t he O Marker o n the ti ming waveform s in the mixed mode displ ay. If the data is no t valid, the command performs no action. <time_value> real number Example O UTPU T XXX; ":WL IST: OTIM E 40.
Query :W LI St :RAN Ge ? The RANG e query returns the current full- screen time. Returne d Format [ :W LI St :R AN Ge ] <t im e_ va lu e> <N L> Example OUT PU T XX X; ": WL IS T: RA NG E? " REMove Command :W LI St :REM ov e The REMove co mmand deletes all waveforms from the displ ay.
XST ate Query :W LI St :XST at e? The XSTate query returns the state where the X Marker is positioned. If data is not valid, the query returns 21 474836 47.
15 SFORmat Subsystem.
Introd uction The S FORmat sub sy s tem contain s the co m man d s available f or th e State Format men u in the Agi lent 1670G-seri es logic analyzer.
SFORmat Subsystem Sy ntax Di agram Figu re 15 -1 SFORma t Subsyste m 15 –3.
Figu re 1 5-1 (conti nued) SFORmat Subsy stem Sy n tax Di agram ( conti nued) SFORma t Subsyste m 15 –4.
Tab le 15 -1 SFORma t Subsyste m Parameter Values Par ameter Val ue <N> an integer from 1 t o 8 label_na me string of up to 6 alphanu meric chara cters polarity {P OSit ive | NE Gati ve} clock_b.
SFORmat Selector :M ACHi ne {1|2 }: SF ORma t The SFO Rmat (St ate F ormat) selecto r is used as a part o f a compound header to access the settings in the State Fo rmat menu. It always follows the MACHine sele ctor because it selects a branch directly be low the MACHine level in the command tree.
Query :M AC Hi ne{1 |2 }:SF OR ma t:CL OC k<N> ? The CLOCk query returns the current clock ing mode for a given pod. Returne d Format [: MA CHin e{1| 2}:S FORm at:C LOCK <N>] <cl ock_ m.
<name> string o f up to 6 alphanumeric characters <polarity> {POSitive | NEGative} <clock_bits> format (int eger from 0 t o 63) for a clock (clo cks are assigne d in decreasing order.
MASTer Command :M AC Hi ne{1 |2 }:SF OR ma t:MA ST er <c lock _i d> ,<cl oc k_sp ec > The MASTer clock command al lows you to specify a mast er clock for a given machine. The master clock is us ed in all clocking modes (Master, Slave, and Demult iplexe d).
MOPQual Command :M AC Hi ne{1 |2 }:SF OR ma t:MO PQ ual <c lock _p ai r_id >, <qua l_ op erat io n> The MOP Qual (master o peration q ualifier) command allows you to specify either the AND or the OR o peration bet ween master clock qual ifier pair 1 and 2, or betwee n master cl ock qualifie r pair 3 and 4 .
MQUal Command :M AC Hi ne{1 |2 }:SF OR ma t:MQ Ua l <q ual_ nu m> ,<cl oc k_id >, <q ual_ le vel> The MQUal (mast er qualifi er) com mand allows you to speci fy t he level qualifie r for the master clock.
REMove Command :M AC Hi ne{1 |2 }:SF OR ma t:RE Mo ve { <n am e>|A LL } The REMove co mmand allows yo u to de lete all labels or any one label for a given machine .
Tab le 15 -2 Setup an d hold v a lues For one cl ock and on e edge For one cloc k and both edges Multipl e Clock s 0 = 3.5/0.0 ns 0 = 4.0/0.0 ns 0 = 4.5/0.0 ns 1 = 3.0/0.5 ns 1 = 3.5/0.5 ns 1 = 4.0/0.5 ns 2 = 2.5/1.0 ns 2 = 3.0/1.0 ns 2 = 3.5/1.0 ns 3 = 2.
SL AV e Command :M AC Hi ne{1 |2 }:SF OR ma t:SL AV e <c lock _i d> ,<cl oc k_sp ec > The SLA Ve clock co mmand allo ws you t o specify a slave clock fo r a given machine. The slave clock is onl y used in t he Slave and De multi plexe d clocking modes.
SOP Qual Command :M AC Hi ne{1 |2 }:SF OR ma t:SO PQ ual <c lock _p ai r_id >, <qua l_ op erat io n> The SOPQual (slave operat i on qualifie r) command allows you to specify either the A N D or the OR operati on bet ween slave clock qualifi er pair 1 and 2, or b e tween slave clock quali fier pair 3 and 4.
SQUal Command :M AC Hi ne{1 |2 }:SF OR ma t:SQ Ua l <q ual_ nu m> ,<cl oc k_id >, <q ual_ le vel> The SQUal (slave qual ifier) command allo ws you to specify the level qualifie r for the slave clock.
<N> pod number (an intege r from 1 to 8 ) <value> voltage (real num b er) − 6.00 to +6 .00 TTL default value of +1.6 V ECL default value of − 1 .
15 –1 8.
16 STR igger (STR ace) Subsystem.
Introd uction The S TRigger subs ystem con tains th e commands availab le for the State Trigger menu in the A gilent 1 670G-se ries lo gic an alyzer. Th e State Trigger subsys tem will also accep t th.
STR igger Subs yste m S ynt ax D iagra m Figu re 16 -1 STRigger ( STRace) Subsys tem 16 –3.
Figu re 1 6-1 (conti nued) STR igger Subs yste m S ynt ax D iagra m ( cont i n ued) STRigger ( STRace) Subsys tem 16 –4.
Figu re 1 6-1 (conti nued) STR igger Subs yste m S ynt ax D iagra m ( cont i n ued) STRigger ( STRace) Subsys tem 16 –5.
Tab le 16 -1 STRigger Subsy s tem Par ameter Val ues Par ameter Val ue branch_ qualifie r <q ua li fi er > to_lev_ num integer from 1 t o last level proceed _qualifier <q uali fier > occurr ence number f rom 1 t o 104 8575 label_na me s tring of up t o 6 alp hanumeric chara cters star t_pat tern "{ #B {0 |1} .
Qualifier The qualifi er for the state trig ger subs ystem can be te rms A - J , Timer 1 and 2, and Range 1 and 2. In addition, q ualifiers can be t he NO T boolean funct ion of term s, time rs, and ranges.
<term3a> { A | NOTA } <term3b> { B | NOTB } <term3c> { C | NOTC } <term3d> { D | NOTD } <term3e> { E | NOTE } <term3f> { F | NOTF } <term3g> { G | NOTG } <.
STRigger (S TRace) ( State Trigger) Selector :M ACHi ne {1|2 }: ST Rigg er The STRigger se lector is use d as a part of a co mpound header to access the settings fo und in the Stat e Trace menu. It al ways follows t he MACHi ne selecto r because it sel ects a branch directl y belo w the MACHine level in the command t ree.
BRA Nch Command :M AC Hi ne{1 |2 }:ST Ri gg er:B RA Nch< N> <b ranc h_ qu alif ie r>,< to _l evel _n umbe r> The BRANch co mmand defines the branch q ualifier for a given seq uence level. When thi s branch q ualifi er is mat ched, i t will caus e the t rigge r sequence to jump to the specified seq uence level.
Example OUT PU T XX X; ": MA CH IN E1 :S TR IG GE R: BR AN CH 1 ’A NY ST AT E’ , 3" O UT PU T XX X; ": MA CH IN E2 :S TR IG GE R: BR AN CH 2 ’A ’, 7 " OUTPUT XXX;":MA .
Example The fo l lowing e xample wo uld be used to specify thi s complex qualifier. O UT PU T XX X; ": MA CH IN E1 :S TR IG GE R: BR AN CH 1 ’( (A O R B) A ND ( F OR G) )’ , 2" Terms A through E, RANGE 1, and TIMER 1 must be grouped t ogethe r and terms F thro ugh J, RANGE 2, and TIMER 2 must b e groupe d together.
FIND Command :M AC Hi ne{1 |2 }:ST Ri gg er:F IN D<N> <p roce ed _q uali fi er>, <o cc urre nc e> The FIN D comm and define s the pro ceed quali fier for a g iven sequence l evel. The qualifier tells the s t ate analyzer when to proceed to the nex t seq uence level.
Query :M AC Hi ne{1 |2 }:ST Ri gg er:F IN D<N> ? The FIND quer y returns the current proceed qual ifier specification for a given seq uence leve l.
RANGe Command :M ACHi ne {1|2 }: ST Rigg er :R ANGe <N > <l abel _n am e>,< st art_ pa tt ern> ,< stop _p at tern > The RANG e command al lows you to specify a range recogni zer term fo r the specified machine.
Query :M AC Hi ne{1 |2 }:ST Ri gg er:R AN Ge<N >? The RANGe query returns the range recogniz er end point specificat ions for the range. Returne d Format [: MA CHin e{1| 2}:S TRig ger: RANG e<.
Query :M AC Hi ne{1 |2 }:ST Ri gg er:S EQ uenc e? The SEQuence query returns the current sequence specifi cation. Returne d Format [: MA CH ine{ 1|2} :S TRig ger: SEQu ence ] <num ber_ of_l evel s&.
Query :M AC Hi ne{1 |2 }:ST Ri gg er:S TO Re<N >? The STORe q uery returns the current st ore qual ifier specifi cation for a gi ven sequence level <N>.
Query :M AC Hi ne {1 |2 } :S TR ig ge r: TA G? The TAG query returns the current count tag specification. Returne d Format [: MA CHin e{1| 2}:S TRig ger: TAG] {O FF |T IME| <sta te_t ag_q uali fier.
TCONtrol Command :M AC Hi ne{1 |2 }:ST Ri gg er:T CO Ntro l< N> <ti me r_nu m> , {O FF|S TA Rt |PAU Se |CON Ti nu e} The TCONtrol (tim er contro l) command allows you to turn off, start, pause, or continue the time r for the specified level.
TERM Command :M AC Hi ne{1 |2 }:ST Ri gg er:T ER M <t erm_ id >, <lab el _nam e> ,< patt er n> The TERM command allows you t o specify a pat tern recog nizer t erm in the specified machine. Each command deals with only one label in the given term; therefo re, a complete specificat ion could require several commands.
Query :M AC Hi ne{1 |2 }:ST Ri gg er:T ER M? <t erm_ id >, <lab el _nam e> The TERM query returns the spe cification of t he term specified b y term identificat i on and lab el name.
TPOSit ion Command :M AC Hi ne{1 |2 }:ST Ri gg er:T PO Siti on { ST AR t| CE NT er |E ND | PO ST st or e, <p os ts to re >} The TPOSitio n (tri gger position) com mand allows you to set the trigge r at the start, cente r, end or at any position in the trace (post store) .
16 –2 4.
17 SLISt Subsystem.
Introd uction The S LISt su bsys tem contains th e commands available for the State Listi ng me nu in the Ag ilent 16 70G-ser ies logic an alyzer. Th ese command s are: • COLumn • RUN Til • CLRP.
SLIS t Subsy s tem Sy n tax Di agram Figure 17 -1 SLI St Subsy stem 17 –3.
Figu re 1 7-1 (conti nued) SLIS t Subsy s tem Sy n tax Di agram (con t inu ed) SLISt Subsy stem 17 –4.
Figu re 1 7-1 (conti nued) SLIS t Subsy s tem Sy n tax Di agram (con t inu ed) SLI St Subsy stem 17 –5.
Tab le 17 -1 SLISt Subsy stem Paramet er Values P aramet e r V alue mo d_num 1 (2 throu gh 10 not used) ma ch_nu m {1 |2 } col_num integ e r fro m 1 to 61 line_numbe r integer fro m -103219 2 to +1 03.
SLISt Selector :M ACHi ne {1|2 }: SL ISt The SLISt se lect or is used as part of a co mpound header to access tho se setti ngs no rmally fo und in t he State Lis ting menu. It always fol lows the MACHine sele ctor because it selects a branch directly be low the MACHine level in the command tree.
<col_num> integer from 1 to 61 <module_num> 1 (2 t hrough 10 are not used) <label_name> a string of up to 6 alphanumeric characters <base> {BINary|HEXadecimal|OCTal|DECimal|TWO.
DATA Query :M AC Hi ne{1 |2 }:SL IS t: DATA ? <l ine_ nu mb er>, <l abel _n am e> The DATA q uery returns t he value at a speci fied line numbe r for a give n label.
Query :M AC Hi ne{1 |2 }:SL IS t: LINE ? The LINE quer y returns t he line numbe r for the state currently in the bo x at the cent er of the screen. Returne d Format [: MA CHin e{1| 2}:S LISt :LIN E] .
Query :M AC Hi ne{1 |2 }:SL IS t: MMOD e? The MMOD e query returns the current marker mode s elected. Returne d Format [: MA CH ine{ 1|2} :S LISt :MMO De] <m arke r_mo de>< NL> Example OUT.
Query :M AC Hi ne {1 |2 }: SL IS t: OP AT te rn ? <l ab el _n am e> The OP ATtern que ry returns t he patte rn specificati on for a g iven label name .
Query :M AC Hi ne{1 |2 }:SL IS t: OSEa rc h? The OSEarch q uery returns t he search criteria fo r the O mark er. Returne d Format [: MA CH ine{ 1|2} :S LISt :OSE arch ] <occ urre nce> ,<or ig.
OT AG Command :M AC Hi ne{1 |2 }:SL IS t: OTAG {< time _v al ue>| <s tate _v al ue>} The OTAG comma nd specifies the tag value on which the O Marker should b e placed. The t ag value is time whe n time taggi ng is on, or stat es when state tagging is on.
OVERlay Command :M AC Hi ne{1 |2 }:SL IS t: OVER la y <c ol_n um >, <mod ul e_nu m> ,M ACHi ne {1|2 }, <l abel _n ame> The OVERlay command allows y ou to add ti me-correlat ed labels fro m th e other anal yzer to t he state li sting.
RUNTil ( Run Un t il) Command :M AC Hi ne{1 |2 }:SL IS t: RUNT il <ru n_ un til_ sp ec> The RUNTil com mand allows you to define a stop condit ion when the trace mode is repetit ive. Specifying OFF causes the analyzer to mak e runs until either STOP is selected from the front panel or the STOP command is is s ued.
TAVerage Query :M AC Hi ne{1 |2 }:SL IS t: TAVe ra ge? The TAVerage query returns the value of the average time be tween the X and O Markers. If the number of valid runs is zero , t he query returns 9.9E37. Valid runs are t hose where the pattern search fo r both the X and O markers was successful , resulti ng in valid de lta-tim e measureme nts.
TMINim um Query :M AC Hi ne{1 |2 }:SL IS t: TMIN im um? The TMINimum query returns t he value of the minimum time betwe en the X and O mark ers. If dat a is not valid, t he query returns 9.
XOTag Query :M AC Hi ne{1 |2 }:SL IS t: XOTa g? The XOTag query returns the time from the X to the O marker when marker mode is t i me or t he number of states fro m the X to the O marker whe n marker mode is state. If there is no data in the time mode the query returns 9.
XPATtern Command :M AC Hi ne{1 |2 }:SL IS t: XPAT te rn <l abel _n am e>,< la bel_ pa tt ern> The XPATt ern command allows y o u to co nstruct a pattern recogniz er term for the X marker which is then used with the XSEarch criteria when moving the mark er on patt erns.
XSEar ch Command :M AC Hi ne {1 |2 }: SL IS t: XS Ea rc h <o cc ur re nc e> ,< or ig in > The XSEarch com mand defines the s earch criteria for the X mark er, which is then used with the associate d XPATte rn reco gnizer specificat ion when moving the markers on patterns.
Example O UTPU T XXX; ":MA CHIN E1:S LIST :X STAT E?" XTAG Command :M AC Hi ne{1 |2 }:SL IS t: XTAG {< time _v al ue>| <s tate _v al ue>} The XTAG command s pecifies t he tag value on which t he X marke r should b e placed. The t ag value is time whe n time t aggi ng is on or s tates whe n state tagging is on.
18 SWAVefor m Subsystem.
Introd uction The commands in the State Waveform sub system allow you to configur e th e display so that y ou can view state data as waveforms o n up to 96 ch annels iden tified by label n ame an d bit n umber. The 12 command s are an alogous to th eir counter parts in the Ti m i ng Wavefor m subsyste m .
SWAVe f orm Sub system Sy ntax Di agram Fig ure 18 -1 SWAVef orm Subsystem 18 –3.
Tab le 18 -1 SWAVefo rm Subsy stem Pa rameter Va lues Par ameter Val ue number_o f_samples integer f rom -1 0321 92 to +103 2192 label_na me string of up to 6 a lphanu meric ch aracters bit_id {O VERl.
AC Cumulat e Command :M AC Hi ne{1 |2 }:SW AV ef orm: AC Cumu la te {{ ON|1 }| {O FF|0 }} The ACCumulate command allows you to control whether the waveform display gets erased betwee n individual runs or whether sub sequent waveforms are displayed over t he previous wavefo rms.
Query MA CH in e{1| 2} :SWA Ve fo rm:A CQ uisi ti on ? The ACQusi t ion q uery returns the current acq uisit ion mo de. Returne d Format [M AC Hine {1|2 }:SW AVef orm: ACQu isit ion] {AU TOma tic| MAN.
CLRStat Command :M AC Hi ne{1 |2 }:SW AV ef orm: CL RSta t The CLRStat command allows you to clear the waveform stat istics witho ut having to s t op and restart the acquis i tion.
INS ert Command MA CH in e{ 1| 2} :S WA Ve fo rm :I NS er t <l ab el _n am e> , <b it_i d> The INSert command adds waveform s to the s tate wavefo rm display. Waveform s are added from top to b o ttom on the screen. When 96 waveforms are present, additio nal waveforms replace the last waveform.
Query :M AC Hi ne{1 |2 }:SW AV ef orm: ML ENgt h? The MLENg th query returns the current analyzer mem ory depth sele ction. Returne d Format [: MA CH ine{ 1|2} :S WAVe form :MLE Ngth ] <mem ory_ le.
REMove Command :M AC Hi ne{1 |2 }:SW AV ef orm: RE Move The REMove command clears the waveform display. Example O UTPU T XXX; ":MA CHIN E1:S WAVE FO RM:R EMOV E" TAKenb ranch Command MA CH i.
TPOSit ion Command MA CH in e{1| 2} :SWA Ve fo rm:T PO Siti on {S TARt |C EN Ter| EN D|PO ST st ore, <p erce nt >} The TPOSi t ion co mmand contro l s where t he trigger po int is placed. T he trigger point can be placed at the start, center, end, or at a percentage of postst ore.
18 –1 2.
19 SCHart Subsystem.
Introd uction The S tate Chart s ubs ystem provide s the co m man ds ne cess ary fo r programmin g th e Agile nt 1670G -series lo gic analyzer State Chart display. The commands allow you to build charts of label activity , usin g data no rmally found i n the Lis ting d isplay.
SCHart Sub system Sy ntax Diagr am Tab le 19 -1 SCHart Subsy stem Paramet er Values Par ameter Val ue state_low_ value integer fro m -1032192 t o + 1032 192 state_h igh_value in t e ger f ro m <sta.
SCHart Selector :M ACHi ne {1|2 }: SC Hart The SCHart selecto r is used as part of a compound header to access t he setti ngs found in the State Chart menu. It always fol lows the MACHine selecto r because it sel ects a branch b elow the MACH ine leve l in the command t ree.
CENTer Command MA CH in e{1| 2} :SCH ar t: CENT er <ma rk er _typ e> The CENTer command centers the waveform display about the specifi ed markers.
Example O UTPU T XXX; ":MA CHIN E1:S CHAR T: HAXI S STAT ES, − 1 00 , 100" O UT PU T XX X;": MACH INE1 :SCH ART: HAXI S ’REA D’, ’ − 51 1’ , ’5 11’, 0, 30 0" Query MA CH in e{1| 2} :SCH ar t: HAXi s? The HAXi s query returns the current horizo ntal ax is labe l and scaling.
Query MA CH in e{1| 2} :SCH ar t: VAXi s? The VAXis q uery returns the current vertical axis label and scaling. Returne d Format [: MA CHin e{1| 2}:S CHar t:VA Xis] <l ab el _nam e>,< low_ va.
19 –8.
20 COMPare Subsystem.
Introd uction Comman ds in the state COM Pare subsyste m provide the ability to do a bit - by-bi t compar ison betwee n the acq u ired state data l isting a nd a compare d ata image.
COMPa re Subsyst em Synt ax Diag ram Figu re 20 -1 COMPa re Subsystem 20 –3.
Tab le 20 -1 COMPar e Subsy stem Pa rameter Va lues Par ameter Val ue label_na me string o f up to 6 character s car e_spec "{ *|.} ..." * car e . don’t car e line_num i nte ge r f rom -2457 60 to +24 5760 dat a_p atte rn "{#B {0 |1|X } .
CLEar Command :M AC Hi ne{1 |2 }:CO MP ar e:CL Ea r The CLEar com mand clears all "do n ’t cares " in the reference listing and replaces t hem with zero s except whe n the CLEar command immediat ely follows the SET command ( s e e SET command) .
Example O UTPU T XX X;": MACH INE2 :COM PARE :CMA SK ’ DATA ’?" COPY Command :M AC Hi ne{1 |2 }:CO MP ar e:CO PY The COPY command copies the current acqui red State Listing for th e specified m achine into the Com pare Listi ng templat e.
<label_name> a string of up to 6 alphanumeric characters <line_num> integer from –245 760 to +24 5760 <data_pattern> "{ #B {0 |1|X } . . . | #Q {0 |1 |2|3 |4|5 |6|7 |X} . . . | #H {0 |1 |2|3 |4|5 |6|7 |8|9 |A |B|C |D|E |F|X } .
FIND Query :M AC Hi ne{1 |2 }:CO MP ar e:FI ND ? <d iffe re nc e_oc cu rren ce > The FIND query is used to get the line number of a specified difference occurrence ( first, second, third, et c ) within t he current co mpare range, as dictated by the RANGe com mand.
Query :M AC Hi ne{1 |2 }:CO MP ar e:LI NE ? The LINE que ry returns t he current l ine number speci fied. Returne d Format [: MA CHin e{1| 2}:C OMPa re:L INE] <li ne_n um>< NL> Example OUT.
Query :M AC Hi ne{1 |2 }:CO MP ar e:RA NG e? The RANG e query returns the current b oundaries fo r the compariso n. Returne d Format [: MA CH ine{ 1|2} :C OMPa re:R ANGe ] {FUL L | PART ial, <sta r.
End points for the INRange and O UTRange should be at least 8 ns apart since this is the mini mum time resolution of the t ime tag counter. There are two conditions which are based o n a compariso n of the acq uired state data and the compare data image.
SET Command :M AC Hi ne{1 |2 }:CO MP ar e:SE T The SET command s ets eve ry state in the re ference list ing t o "don’t cares." If you send the SET com mand by mist ake you can imm ediately send the CLEar command t o restore t he previous data.
21 TFORmat Subsystem.
Introd uction The TFOR mat su b s ystem con tains th e commands availab le for the Timin g Format menu in th e Agile nt 1670G -series logic an alyzer .
TFORmat Subsystem Sy ntax Di agram Figu re 21 -1 TFORma t Subsys tem 21 –3.
Tab le 21 -1 T FO Rmat Subs ystem Para meter Val ues Par ameter Val ue <N> an integer from 1 t o 8, indicating po d name string of up to 6 alphanu meric charact ers polarity {P OSit ive | NE Gat.
ACQMode Command :M AC Hi ne {1 |2 }: TF OR ma t: AC QM od e {F UL L | HA LF } The ACQMo de (acq uisitio n mode) command se lects the acq uisitio n mode fo r the timing analyz er.
LABel Command :M AC Hi ne {1 |2 }: TF OR ma t: LA Be l <n am e> [, <pol ar it y>,< cl ock_ bi ts >, [ <c lock _b it s>,] <u pp er _b it s> , <l ow er _b it s> [, <u pp er _b it s> , <l ower _b it s>]. ..
<lower_bits> format ( intege r from 0 to 65535) for a po d (pods are assigned in de creasing order) <assignment> format ( intege r from 0 to 65535) for a po d (pods are assigned in de crea.
TH R esho ld Command :M AC Hi ne{1 |2 }:TF OR ma t:TH Re shol d< N> {T TL|E CL |< valu e> } The THResho ld command allows y o u to se t the volt age thresho ld fo r a given pod to ECL, TT L , or a specific vo l tage fro m − 6.00 V to +6.
22 TTRigger (TTR ace) Subsystem.
Introd uction The TT Rig ger subs ystem contains the command s availabl e for the Timin g Trigg er menu in the Agilen t 1670G-seri es logic analyzer. The Timin g Trigg er subsy stem wi ll also accept .
TTR igger Subs ystem S ynt ax D iagra m Figu re 22- 1 TTRigge r (TTRace) Sub s ys tem 22 –3.
Figu re 2 2-1 (conti nued) TTR igger Subs ystem S ynt ax D iagra m ( cont i n ued) TTRigger ( TTRace) Subs ystem 22 –4.
Tab le 22 -1 TTRigge r Paramete r Val ues P aramet e r V alue bran ch_qualifier <qua li fi er > to_ level_n um integ er f rom 1 to las t lev el proc eed_qualif i er <qua li fi er > occur r e nce n umber fr om 1 to 1048 575 label_name st ring of up t o 6 alphanume ric characters s tart _p atte rn "{ #B {0 |1 } .
Qualifier The qualifi er for the ti ming trig ger s ubsystem can b e te rms A thro ugh G and I, Timer 1 and 2, and Rang e 1 and 2 . In addition, qualifiers can be the N OT boolean funct i on of terms, timers, and ranges.
<term3a> { A | NOTA } <term3b> { B | NOTB } <term3c> { C | NOTC } <term3d> { D | NOTD } <term3e> { E | NOTE } <term3f> { F | NOTF } <term3g> { G | NOTG } <.
Qual ifier Ru les The follo wing rules appl y to quali fiers: • Qualifie rs are quo ted st rings and, therefo re, need q uotes. • Express ions are e valuated from left t o right. • Parenthe ses are use d to change the order evaluatio n and, therefo re, are optio nal.
ACQuisition Command :M AC Hi ne{1 |2 }:TT Ri gg er:A CQ uisi ti on {A UTOm at ic |MAN ua l} The ACQuis i tion co mmand specifi e s the acq uisiti on mode for t he Timing analyzer.
Withi n the limitat ions sho wn by the s yntax de finitions , co mplex e xpre ssions may be formed using the AND and OR operato rs. E xpressi ons are limit ed to what you could manually enter through the Timing Tri gger menu. As far as required and opt ional parenthese s, the syntax de finitions on the nex t page show onl y t he require d one s.
Query :MACHine{1|2}:TTRigger:BRANch<N>? The BRANch query returns the current branch q ualifier specification for a given sequence level. Return ed Format [:MACHine{1|2}:TTRigger:BRANch<N>].
Terms A th rough E, RANGE 1 , and ED GE 1 must be group ed t ogether and terms F, G, RA NGE 2 , and ED GE2 , and mus t be gr oupe d toget her. In t he firs t level, terms f rom one gr oup ma y not b e mixed wit h terms fro m the other.
EDGE Command :M AC Hi ne{1 |2 }:TT Ri gg er:E DG E<N> < la bel_ na me>, <e dge_ sp ec > The EDG E command de fines edge specificatio ns for a g iven label. Edge specificati ons can be R (ris ing), F (fal ling), E ( e ither) , or ".
FIND Command :M AC Hi ne{1 |2 }:TT Ri gg er:F IN D<N> <t ime_ qu al ifie r> ,<co nd it ion_ mo de> The FIN D comm and define s the q ualifier fo r a given se quence level. The qualifie r te lls the timing analyz er when t o proceed to the next seque nce le vel.
Example OUT PU T XX X; ": MA CH IN E1 :T TR IG GE R: FI ND 1 ’A NY ST AT E’ , GT , 10 E − 6" O UT PU T XX X; ": MA CH IN E1 :T TR IG GE R: FI ND 3 ’( (N OT A AN D NO TB ) OR G ).
Query :M AC Hi ne{1 |2 }:TT Ri gg er:M LE Ngth ? The MLENg th query returns the current analyzer mem ory depth sele ction. Returne d Format [: MA CHin e{1| 2}:T TRig ger: MLEN gth] <me mory _len gt.
Example OUT PU T XX X; ": MA CH IN E1 :T TR IG GE R: RA NG E1 ’ DA TA ’, ’ 12 7’ , ’2 55 ’ " O UT PU T XX X; ": MA CH IN E1 :T TR IG GE R: RA NG E2 ’ AB C’ , ’# B0 00 .
Query :M AC Hi ne{1 |2 }:TT Ri gg er:S EQ uenc e? The SEQuence query returns the current sequence specifi cation. Returne d Format [: MA CH ine{ 1|2} :T TRig ger: SEQu ence ] <num ber_ of_l evel s&.
TCONtrol (Timer Control) Command :M AC Hi ne{1 |2 }:TT Ri gg er:T CO Ntro l< N> <ti me r_nu m> , {O FF|S TA Rt |PAU Se |CON Ti nu e} The TCONt rol com mand turns o ff, starts, pause s , or co ntinues t he timer for the speci fied level. The time value of t he time r is defined by the TIMER command.
TERM Command :M AC Hi ne{1 |2 }:TT Ri gg er:T ER M <t erm_ id >, <lab el _nam e> ,< patt er n> The TERM command specifies a patt ern recognizer term in the s pecified machine. E ach command deal s with o nly one l abel in the given term ; therefore , a complete specificatio n could require several commands.
Query :M AC Hi ne{1 |2 }:TT Ri gg er:T ER M? <t erm_ id >, <lab el _nam e> The TERM query returns the spe cification of t he term specified b y term identificat i on and lab el name.
TPOSit ion (Trigger Position) Command :M AC Hi ne{1 |2 }:TT Ri gg er:T PO Siti on {S TARt |C EN Ter| EN D|DE La y, <tim e_ val> | PO STst or e, <pos ts tore >} The TPOSi tion co mmand sets the trigger at the start , center, end or any positi on i n the trace (post store) .
23 TWAVeform Subsystem.
Introd uction The TW AVe form su bsystem con tains th e commands available for the Timin g Waveforms m enu in the Agilen t 16 70G-ser ies log ic analyzer.
TWAVe form Subsy stem Syntax Di a gram Figu re 23 -1 TWAVef orm Subsyste m 23 –3.
Figu re 2 3-1 (conti nued) TW AVe form Sub syst em Sy n t ax Diagr am (cont inue d) TWAVef orm Subsyste m 23 –4.
Figu re 2 3-1 (conti nued) TW AVe form Sub syst em Sy n t ax Diagr am (cont inued) TWAVef orm Subsyste m 23 –5.
Tab le 23 -1 TWAVef orm Paramet er Values Par ameter Val ue delay_va l ue real number between - 2500 s and +2 5 00 s module_spe c 1 bit_id i nte ger fr om 0 to 31 label_na me string of up to 6 alphanu meric chara cters label_pa t ter n "{ #B {0 |1 |X} .
TWAV eform Selector :M ACHi ne {1|2 }: TW AVef or m The TWAVeform sel ector is used as part of a compound he ader to access t he setti ngs found in the Timing Wave forms menu. It always follows the MACHine sele ctor because it selects a branch belo w the MACHine level in the command t ree.
ACQuisition Command :M AC Hi ne{1 |2 }:TW AV ef orm: AC Quis it io n {A UTOm at ic |MAN ua l} The ACQuis i tion co mmand specifies the acq uisition m ode for t he timing analyzer.
CLRPattern Command :M AC Hi ne{1 |2 }:TW AV ef orm: CL RPat te rn {X| O| ALL} The CLRPat tern command clears the patterns in the se lected Speci fy Patterns m enu.
Query :M AC Hi ne{1 |2 }:TW AV ef orm: DE Lay? The DELay query returns the current tim e offset (delay) value from the trigger. Returne d Format [: MA CH ine{ 1|2} :T WAVe form :DEL ay] <t ime_ val.
MLENgth Command :M AC Hi ne {1 |2 }: TW AV ef or m: ML EN gt h <m em or y_ le ng th > The MLENg th command specifies the anal yzer me mory dept h. Valid memory depths range from 4096 state s (or sample s ) thro ugh the m a ximum s ystem memory depth minus 81 92 states.
MMODe (Marker Mode) Command :M AC Hi ne{1 |2 }:TW AV ef orm: MM ODe {O FF|P AT Te rn|T IM E|MS Ta ts } The MMO De command s elects the m ode cont rolling m arker move ment and the display of the marker readouts . When PA TTern i s select ed, the markers will b e placed on patt erns.
Query :M AC Hi ne{1 |2 }:TW AV ef orm: OC ONdi ti on ? The OCO Ndition q uery returns the current setting. Returne d Format [: MA CHin e{1| 2}:T WAVe form :OCO Ndit ion] {EN Teri ng|E XITi ng}< NL&.
Query :M AC Hi ne {1 |2 }: TW AV ef or m: OP AT te rn ? <l ab el _n am e> The OP ATtern que ry, in patt ern m arker mode , returns t he patter n specificati on for a g iven labe l name. In the time mark er mode, the query returns t he pattern under the O marker for a given labe l.
Query :M AC Hi ne{1 |2 }:TW AV ef orm: OS Earc h? The OSEarch q uery returns t he search criteria fo r the O mark er. Returne d Format [: MA CH ine{ 1|2} :T WAVe form :OSE arch ] <occ urre nce> .
RANGe Command :M AC Hi ne {1 |2 }: TW AV ef or m: RA NG e <t im e_ va lu e> The RANG e command s pecifies the full -screen time i n the timing waveform menu. It is eq uivalent t o ten t imes t he seconds- per-divisio n setti ng on the display. The allowab le values for RANGe are from 10 ns to 10 ks.
RUNTil (Run Until) Command :M AC Hi ne{1 |2 }:TW AV ef orm: RU NTil < ru n_un ti l_sp ec > The RUNTil com mand defi nes sto p criteria b ased on the tim e b etween t he X and O mark ers when t he trace mo de is in repetitive.
SP E Rio d Command :M AC Hi ne {1 |2 }: TW AV ef or m: SP ER io d <s am p_ pe ri od > The SPERio d command sets the sampl e period o f t he timing analyzer.
TMAXimum Query :M AC Hi ne{1 |2 }:TW AV ef orm: TM AXim um ? The TMAXimum query returns the value of the maximum tim e bet ween t he X and O mark ers. If there is no valid data, the query re turns 9.
the Us er Define d opt ion when sett ing the trigger posit ion from the front panel. The TPOSi t ion co mmand is o nly availab le when the acquisit i on mo de is set to manual.
XCONdition Command :M AC Hi ne{1 |2 }:TW AV ef orm: XC ONdi ti on {E NTer in g| EXIT in g} The XCON dition command speci fies where t he X marker is placed. The X marker can b e placed on t he entry o r exit po int of t he XPA Ttern when in t he PAT T ern mark er mode.
XPATtern Command :M AC Hi ne{1 |2 }:TW AV ef orm: XP ATte rn <l abel _n am e>,< la bel_ pa tt ern> The XPATt ern command const ructs a pattern re cognizer te rm for the X marker which is then used with the XSEarch criteri a and XCONdit ion when moving the marker on patte rns.
XSEar ch Command :M AC Hi ne{1 |2 }:TW AV ef orm: XS Earc h <o ccur re nc e>,< or igin > The XSEarch com mand defines the s earch criteria for the X mark er which is then used with the asso ciated XPATte rn recognizer specificat i o n and the XCON dition whe n moving m arkers on patterns.
XTI Me Command :M AC Hi ne {1 |2 }: TW AV ef or m: XT IM e <t im e_ va lu e> The XTIMe command positions the X marker in time when the marker mod e is TIME . If data is no t valid, t he command perform s no acti on. <time_value> real number from − 10 .
24 TLISt Subsystem.
Introd uction The TLISt s u bsyste m contains the commands availabl e for the Timing Listi ng me nu in the Ag ilent 16 70G-ser ies logic an alyzer and is the same as th e SL I St subsystem (ex cept the OCONdition an d XCONdi tion command s).
TLIS t Subsy s tem Sy n tax Di agram Figu re 24 -1 TLISt Sub s yste m 24 –3.
Figu re 2 4-1 (conti nued) TLIS t Subsy s tem Sy n tax Di agram (con t inu ed) TLISt Subsy stem 24 –4.
Figu re 2 4-1 (conti nued) TLIS t Subsy s tem Sy n tax Di agram (con t inu ed) TLISt Sub s yste m 24 –5.
Tab le 24 -1 T L ISt Paramete r Values Par ameter Val ue mod_nu m 1 (2 throu gh 10 not used) col_num i nte ger from 1 to 61 line_numb er integer f rom -1 0 321 92 to +103 2192 label_na me a string of .
TLISt Selector :M ACHi ne {1|2 }: TL ISt The TLISt selector is used as part of a compound he ader to access those settings no rmally found in t he Timing List ing menu. It al ways follows t he MACHine sele ctor because it selects a branch directly be low the MACHine level in the command tree.
<col_num> integer from 1 to 61 <module_num> 1 (2 thro ugh 10 not used ) <label_name> a string of up to 6 alphanumeric characters <base> {BINary|HEXadecimal|OCTal|DECimal|TWOS|A.
DATA Query :M AC Hi ne{1 |2 }:TL IS t: DATA ? <l ine_ nu mb er>, <l abel _n am e> The DATA q uery returns t he value at a speci fied line numbe r for a give n label.
Query :M AC Hi ne{1 |2 }:TL IS t: LINE ? The LINE quer y returns t he line numbe r for the state currently in the bo x at the cent er of the screen. Returne d Format [: MA CHin e{1| 2}:T LISt :LIN E] .
OCONdition Command :M AC Hi ne{1 |2 }:TL IS t: OCON di tion { EN Teri ng |EXI Ti ng } The OCO Ndition co mmand specifies where the O mark er is placed. The O marker can b e placed on t he entry o r exit po int of t he OP ATtern when i n the PAT T ern mark er mode.
OPATtern Command :M AC Hi ne{1 |2 }:TL IS t: OPAT te rn <l abel _n am e>,< la bel_ pa tt ern> The OPATtern comm and allows you to const ruct a patt ern recogni z e r ter m for the O Marker which is then used with the OSEarch criteria when moving the mark er on patt erns.
OSEarch Command :M AC Hi ne {1 |2 }: TL IS t: OS Ea rc h <o cc ur re nc e> ,< or ig in > The OSEarch co mmand defines the search crite ria for the O marker, whi ch is then used with associate d OPATtern recogni z er specificati on when moving the markers on patterns .
OSTate Query :M AC Hi ne{1 |2 }:TL IS t: OSTa te ? The OSTate query returns t he line numbe r in the l isting whe re the O marker resides. If data is not valid , t he query returns 2147 483647 .
REMove Command :M AC Hi ne{1 |2 }:TL IS t: REMo ve The REMove command removes all labe ls, except the left most labe l, from the lis ting menu. Example OUT PU T XX X; ": MA CH IN E1 :T LI ST :R E.
The RUNTil query returns the current stop criteria. Returne d Format [: MA CHin e{1| 2}:T LISt :RUN Til] <ru n_un til_ spec ><NL > Example O UTPU T XXX; ":MA CHIN E1:T LIST :R UNTI L?" TAVerage Query :M AC Hi ne{1 |2 }:TL IS t: TAVe ra ge? The TAVerage query returns the value of the average time be tween the X and O markers.
TMINim um Query :M AC Hi ne{1 |2 }:TL IS t: TMIN im um? The TMINimum query returns t he value of the minimum time betwe en the X and O mark ers. If dat a is not valid, t he query returns 9.
XCONdition Command :M AC Hi ne{1 |2 }:TL IS t: XCON di tion { EN Teri ng |EXI Ti ng } The XCON dition command speci fies where t he X marker is placed. The X marker can b e placed on t he entry o r exit po int of t he XPA Ttern when in t he PAT T ern mark er mode.
XOTim e Query :M AC Hi ne{1 |2 }:TL IS t: XOTi me ? The XOTime query returns the tim e fro m the X to O markers. If t here is no data in t he time mode the query returns 9.
Query :M AC Hi ne {1 |2 }: TL IS t: XP AT te rn ? <l ab el _n am e> The XPATt ern query returns the pattern s pecification for a given lab e l name.
XST ate Query :M AC Hi ne{1 |2 }:TL IS t: XSTa te ? The XSTate q uery returns the line number in the listing where the X marker resides. If data is not valid, the query returns 2 1 474836 47.
24 –2 2.
25 SPA Su bsystem.
25 –2.
SPA Sub system 25 –3.
SPA Subs ys te m 25 –4.
SPA Sub system 25 –5.
Tab le 25 -1 SPA Subs ystem Par ameter Val ues Par ameter Val ue bucket _num 0 to (n umber of valid buck ets - 1) high_pat t <p at tern > label_na me a string of up t o 6 alphanu meric chara cte.
MODE Command : SP A{ 1| 2} :M OD E {O VE RV ie w| HI ST og ra m| TI NT er va l} The MOD E command s elects whi ch menu to displ ay: State Overview, State Histogram , or Time Interval.
OVERView:BUCKet Query :S PA {1 |2}: OV ERVi ew :B UCKe t? {S IZE| NU MB er|< bu cket _n um >} The OVERView:BU CKet query returns data relat ing to the State O verview measurement .
OVERView:HIGH Command :S PA {1 |2 }: OV ER Vi ew :H IG H <h ig h_ pa tt er n> The OVERView:HIG H command sets the upper boundary of the State Overview measure ment.
OVERView:LABel Command :S PA{1 |2 }:OV ER Vi ew:L AB el <la be l_na me > The OVERView:L ABel comm and selects a new lab el for co llecting the SPA measurement s .
OVERView:LOW Command :S PA{1 |2 }:OV ER Vi ew:L OW < low_ pa tter n> The OVERView:L O W co mmand sets the lo wer bo undary o f the Stat e Overview measure ment.
OV ERView:MLENgth Command :S PA{1 |2 }:OV ER Vi ew:M LE Ng th < me mory _l en gth> The MLENg th command specifies t he memo ry depth. Valid me mory dept hs range from 4096 states (or samples ) through the maximum syste m memory depth minus 8192 states.
OVERView:OMA Rker Command :S PA{1 |2 }:OV ER Vi ew:O MA Rk er < o_ patt er n> The OVERView:OMARk er command sends the O marke r to the lower boundary of the b ucket where t he specifie d pattern is lo cated. A request to place the marker outside the defined boundary forces the marker to the appropriate end bucke t .
OV ERView:OVST atistic Query :S PA {1|2 }: OV ERVi ew :OVS Ta ti stic ? {X HITs |O HI Ts|T OT al} The OVERView:OVSTatis tic query returns the numbe r of hits associat ed with the request ed stat istic or returns the number of hits in t he specified buck e t .
OVERView:XMARker Command :S PA{1 |2 }:OV ER Vi ew:X MA Rk er < x_ patt er n> The OVERView:X MARker com mand sends t he X marker to the lo wer boundary of the b ucket where t he specifie d pattern is lo cated. A request to place the marker outside the defined boundary forces the marker to the appropriate end bucke t .
HIS Togram:HSTatistic Query :S PA {1|2 }: HI STog ra m:HS Ta ti stic ? {T OTal |O TH er|< ra nge_ nu mb er>} The HISTogram :HSTatistic q uery ret urns the t otal numb er of s amples or returns t he number of s amples in the s pecified range.
HIS Togram:LABel Command :S PA {1 |2 }: HI ST og ra m: LA Be l <l ab el _n am e> The HISTogram :LABel co mmand s elects a new label for coll ecting SP A measurement s . A query returns the name of the currently select ed label. Selecting a new label de faults the State Histo gram range name s, bucket sizes, and hit accumul a tors.
HIS Togram:OTHer Command :S PA {1 |2 }: HI ST og ra m: OT He r {I NC Lu de d| EX CL ud ed } The HISTogram :OTHer comm and selects includi ng or ex cluding the " other" histog ram b ucket. A query returns dat a indicating whether the " other" bucket is current ly included o r exclude d.
HIS Togram:QUALifier Command :S PA {1 |2 }: HI ST og ra m: QU AL if ie r <l ab el _n am e> , <p atte rn > The HISTogram :QUAL ifier comm and sets t he patte rn associat ed wit h the specified labe l. T he pattern i s a condit ion for trigg ering and st oring the measurement .
HISTogram:RANGe Command :S PA{1 |2 }:HI ST og ram: RA NG e {O FF | <r ange _n um >,<r an ge_n am e> ,<lo w_ patt >, <h igh_ pa tt>} The HISTogram:RAN Ge command turns off all ranges or defines the range name, lo w boundary, and hig h boundary of the specifie d range.
HIS Togram:TTYP e Command :S PA {1 |2 }: HI ST og ra m: TT YP e {A LL |Q UA Li fi ed } The HISTogram :TTYPe command set s the t rigger t o trigg er o n anystate or on qualifie d state.
TINTerval:AUTorange Command :S PA{1 |2 }:TI NT er val: AU To rang e {L OGar it hm ic|L IN ear} ,< mi n_ti me >,<m ax _t ime> The TINTerval:AU Torange command automat ically sets the Time Interval ranges in a lo g arithmic o r linear dist ri b ution o ver the s pecified range of time .
<end_pattern> "{#B{0|1}...| #Q{0|1|2|3|4|5|6|7}...| #H{0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F}.. .| {0|1|2|3|4|5|6|7|8|9}...}" Example OUT PU T XX X; ": SP A1 :T IN Te rv al :Q UA Li fi .
TINTerval:TINT erval Command :S PA{1 |2 }:TI NT er val: TI NT erva l <i nter va l_ numb er >,<m in _t ime> ,< max_ ti me > The TINTe rval:TINTerval co mmand specifie s the mi nimum and maximum time l imits fo r the gi ven interval. A query ret urns these limits for a specified interval.
TINTerval:TSTatistic Query :S PA {1|2 }: TI NTer va l:TS Ta ti stic ? {T MINi mu m| TMAX im um|T AV er age| TO Tal| TT OT al| <i nter va l_ numb er >} The TINTe rval:TSTatistic query ret urns either the time o r t he number of samples associ ated with the request ed stati stic.
25 –2 6.
26 SYMBol S u bsystem.
Introd uction The S Y MBol subs ystem con tains the command s to define symbols on the controll er and download them to th e Agil ent 1670 G-s eries l ogic anal yzer.
SYMBo l Subsyst em Syntax Di agram Figu re 26 -1 SYMBol Sub system 26 –3.
Tab le 26 -1 SYMBol Para mete r Values Par ameter Val ue label_na me s tring of up to 6 a lphanu meric ch aracters symbol_na me s t ring o f up to 16 alphanumer ic char acters pat tern _va lue "{ #B {0 |1|X } . . . | #Q {0 |1 |2|3 |4|5 |6|7 |X} .
SYMBol Selector :M ACHi ne {1|2 }: SY MBol The SYMBol se lector is use d as a part o f a compound header t o access the commands us ed to create symb ols. It always follows the MACHine select or because it selects a branch directly below the MACH ine level in the command tre e.
PATTern Command :M AC Hi ne{1 |2 }:SY MB ol :PAT Te rn < la be l_na me >, <s ymbo l_ na me>, <p atte rn _v alue > The PATTern co mmand creates a pat tern symbo l fo r the speci fied labe l. Because don’t cares ( X) are allowed in the pattern value, it must always b e express ed as a string.
RANGe Command :M AC Hi ne{1 |2 }:SY MB ol :RAN Ge <la be l_ name >, <s ymbo l_ na me>, <s tart _v al ue>, <s top_ va lu e> The RANG e command cre ates a range sym b ol co ntaining a start value and a stop val ue for the specified labe l.
REMove Command :M AC Hi ne{1 |2 }:SY MB ol :REM ov e The REMove command deletes all symb ols from a specifie d machine. Example O UTPU T XXX; ":MA CHIN E1:S YMBO L: REMO VE" WIDTh Command :M.
27 DATA and SETup Com mands.
Introduction The DATA and SETup commands are S Y STem comm ands that send and re ceive block d ata between the Ag ilent 1670G-s eries l ogic anal yzer and a controll er. Use the DATA instr uctio n to transfer acqu ired ti m ing a nd state data, and the S ETup instru ction to tr a nsfe r instru ment configurati on data.
Data Fo rmat To understand the format of the data within the block data, keep these important things in mind. • Data is sent to the controll er in b inary form. • Each byt e, as describ ed in this chapter, co ntains 8 b i ts. • The first bit of each b yte is t he MSB (mo st sig nificant bit).
SYSTem:DA TA Command :S YS Te m:DA TA <bl oc k data > The SYSTem:DA TA command t ransmits the acq uisition m emory dat a from the control ler to the Agil ent 1670G-s eries lo gic analyz er. The blo ck data co nsists of a vari abl e number of byt es containing information captured b y the acq uisition chips .
<block data> <block length specifier><section>... <block length specifier #8<length> <length> the to tal length o f all sect i ons in b yte format (must be re presente.
Section Header Descr iption The sectio n header uses byte s 1 through 16 (this manual beg ins counting at 1; there is no byte 0). The 16 byt es of t he secti on header are as fo llows: Byte Position 1 10 b ytes - Section name ( " DAT A sp ac e sp ac e sp ac e sp ac e sp ac e sp ac e " in A SCII for the DA TA inst ruction) .
The values store d in the preamb le re present the capt ured data currently stored in this struct ure and not the current analyzer configurat ion. For example , the mo de of t he data ( bytes 33 and 1 0 3) may be STATE with tagging, while the current s etup o f the analyzer is TIMING.
Byte Position 41 4 bytes - Master chip for this analy z er 45 4 bytes - Maxim um hardware memo ry de pth available fo r this anal y zer 49 4 bytes - Unused 53 8 by tes - Sam ple period in picoseco nds.
Byte Position 173 88 b ytes - Numb er of valid rows of data (starting at b y te 5 91) for each pod. Bytes 1 73 through 2 28 are unused. Byte Position Bytes 229 through 23 2 - contain the number of valid rows o f data for pod 8. Bytes 233 through 236 - contain the number of valid ro ws of data for pod 7.
Acquisition Data Descrip t ion The acquisi t ion dat a sectio n consist s of a variable numb er of b ytes de pending on the acquisit ion mode and the tag se tting.
The clock pods contain data mapped according to the clock desig nator and the board (se e below) . U nused clock lines should be ignored. po d8 -- 5 po d4 -- 1 Cl oc k Pod 1 < XXXX MLKJ > Where x = not used. Byte Position 591 1 byte - Not use d (MSB of clock pod 2).
Tag Data Descri ption If tags are enabled for one o r bot h analyze rs, the t ag data fo llows th e acquisit i o n data. The fi rst by te of t he tag dat a is det ermined as fo llows: 591 + (bytes per.
<block data> <block length specifier><section>... <block length specifier #8<length> <length> the to tal length o f all sect i ons in b yte format (must be re presente.
27 –1 4.
Pa rt 4 Oscillo scope Co m mands.
.
28 Oscillo scope Ro ot Level Co m mand s.
Introd uction Osci lloscop e Root Leve l commands control th e basi c operatio n of the oscillo scope. Refe r to fi gur e 28-1 for the mod u le le vel syn tax command di agram. The Root Level commands ar e: • AUTo scale • DIGitize This chapter o nly app lies to the os cillo scope o ption.
Figu re 28-1 Root L evel Co mmand Sy ntax Diag ram AUTo scale Command :A UT os cale The AUToscal e co mmand causes t he oscil loscope to auto matically select the vertical s ensitivit y, verti cal offset, t rigger so urce, trigg er le vel, and ti meb ase settings for optim um viewing of any input signals.
Example This pro gram selects the osci lloscope in slot B, issues an autos cale co mmand, waits 5 seco nds for t he oscill oscope t o coll ect data, and then gets and prints the meas urement.
DIGit iz e Command :D IG it ize The DIGitize command is used to acquire waveform data for transfer over GPIB and RS-232- C. The comm and initiat es Repetitive Run for the oscillo sco pe and the analyzer if it is grouped with the oscillo scope via G roup Run.
28 -6.
29 ACQui re Subsystem.
Introd uction The Acqu ire S u b s ystem commands are u s ed to set up acqu isition con ditions for the DIGiti ze command of th e oscill oscope system. The subsys tem contains commands to s elect the type of acq u isitio n and the nu mber of aver ages to be tak en if the averag e type i s chosen.
Figu re 29 -1 ACQ uire Su bsyst em Synt ax Diag ram Tab le 29 -1 ACQuire Parame t er Valu es Par ameter Val ue coun t_arg {2 |4 |8 |16| 32|6 4|12 8|25 6} The number of av erages to be taken of ea ch time point .
COUNt Command :A CQ ui re:C OU Nt < co un t> The COUNt command s pecifies the numb er of acquis itions for the runni ng weighted average. The COUN t com mand is onl y availabl e when the acquisit i on mo de is AVERage.
TY PE Command :A CQ ui re :T YP E {N OR Ma l| AV ER ag e} The TYPE command selects the type of acquisit ion that is t o take place when a D IGit ize or STARt command is execute d. One of two acqui sition types may be chosen: the NORMal or AVERage mode.
29 -6.
30 CHANnel Subsystem.
Introd uction The C hannel Su bsystem command s contro l the ch annel d isplay and the vertical ax is of the oscillo scope. Each ch annel mu st b e programmed in depende ntly for al l offset, ran ge, and prob e function s .
Figu re 30 -1 CHA Nnel Subs ystem Syn t ax Di agram CHAN nel Subsys tem 30 -3.
Tab le 30 -1 CHANnel Parame t er Valu es Par ameter Val ue channel_nu mber {1 |2} offset _arg a rea l number def ining th e volt age at t he center of the display .
Query : CHA Nn el<N >: CO UPli ng ? The COUPli ng query returns the current input impe dance for the speci fied channel. Returne d Format [: CH ANne l<N> :COU Plin g:] {D C|AC |DCF ifty }&.
OF FSet Command :C HANn el <N>: OF FS et < va lu e> The OF FSet command se ts t he volt age that is re presented at center s creen for the selected channel. The allowab le offset voltage values are shown in the table below. The t able represe nts values for a Probe sett ing of 1:1.
PROBe Command :C HA Nn el <N >: PR OB e <a tt en > The PRO Be command specifies t he atte nuation fact or for an external probe connected t o a channel . The command changes the channel voltage references s uch as range, offset , trigg er level, and automat ic measurements.
RANGe Command :C HA Nn el <N >: RA NG e <r an ge > The RANG e co mmand defines the full-scale ( 4 × Vo lts/D iv) vert ical axi s of the sel ected channel. The values fo r the RANGe co mmand are dependent on the current probe atte nuation factor for the select ed channel.
TT L Command :C HA Nn el<N >: TTL The TTL command sets the vertical range, offse t, and trigger level for the selecte d input channel for opti mum viewing of T TL signals. TTL val ues are: Range: 6. 0 V ( 1.50 V per division) Offset : 2.5 V Trigger Leve l : 1.
30 -1 0.
31 DISPlay Subsystem.
Introd uction The Dis play S u bsys tem is used to contr ol th e dis play of d ata from the oscillo scope. Refer to Figure 31-1 for the DISPlay Su b s ystem Syntax Diagra m.
Figu re 31 -1 DISPl ay Subs ystem Syn t ax Di agram DISPlay Subsys tem 31 -3.
Tab le 31 -1 DISPlay Parameter Values Par ameter Val ue slot_# 1 or 2 1=ana l yzer, 2=oscillosc ope. bit_id an integer fr om 0 t o 31. channel_# 1 or 2 .
CONNect Command :D IS Pl ay:C ON Nect { {O N|1} |{ OFF| 0} } The CONNe ct command s ets t he Connect Dots mo de. When O N, each displayed s ample dot will be co nnected to t he adjace nt dot by a st raight li ne. When OF F, only the sampling point s will be display ed.
INS ert Command :D IS Pl ay:I NS ert {[ 2, ]<la be l> | 1 ,< labe l> ,<bi t_ id >} The INSert command ins erts waveforms i nto the current display. Time-correl ated waveforms fro m the logic analyzer m ay be adde d to t he current displ ay.
LABel Command :DI SP la y: LA Be l CH AN ne l< N> ,< la be l_ st r> The LABel co mmand is used t o assign a label stri ng to an osci l loscope channel. For singl e channel traces, the labe l string (up to five characters) appears on t he left of the waveform area of the display.
MINus Command :DI SP la y: MI Nu s [< mo du le _n um be r> ,] <l ab el >, <l ab el > The MINus co mmand algebrai cally subtract s one channel from another and inserts the result ant waveform on the display . The first parameter is an optio nal module specifier, al ways 2 fo r the os cillosco pe.
PLUS Command :D IS Pl ay :P LU S [< mo du le _n um be r> ,] <l ab el >, <l ab el > The PLU S command al gebraically adds two channels and ins erts the resultant waveform to t he current di splay. The first parameter i s an optional module specifie r, always 2 for the oscilloscope .
31 -1 0.
32 MAR Ker Sub system.
Introd uction The os cill oscope ha s four marker s for making time and voltag e measuremen t. These measuremen ts may be made automaticall y or manu ally. A ddition al featu res in clude the ru n until time (R UNTil) mode and th e ab ility to ce nter on trig ger or mark ers in the disp lay area (CENT er) and .
Figu re 32 -1 MARKe r Subsy stem Synt ax Diagra m MA RKer Subsyste m 32 -3.
Figu re 3 2-1 (conti nued) MARKe r Sub system Synt ax Diagr am (cont inue d) MARKer Subsy s te m 32 -4.
Figu re 3 2-1 (conti nued) MARKe r Sub system Synt ax Diagr am (cont inue d) Tab le 32 -1 M ARKer Parameter Values Par ameter Val ue channel_# {1 |2} marker _time time in se conds lt_arg time in secon.
AVOL t Command :M AR Ke r: AV OL t CH AN ne l< N> ,< le ve l> The AVOLt com mand moves the A m arker to the specified vo ltage o n th e indicated channe l. <N> {1|2} <level> the desi red marker vo ltage l evel, ± (2 × maximum offset) Example O UTPU T XXX; ":MA RKER :AVO LT CHA NN EL1, 2.
ABVolt ? Query :M AR Ke r:AB Vo lt? The ABVolt query ret urns t he difference betwee n the A m arker volt age and the B mark er voltage ( Vb – Va). Returne d Format [: MA RKer :ABV olt] <lev el&g.
CENTer Command :M AR Ke r:CE NT er { TR IG ger| X| O} The CENTer co mmand allows yo u to positio n the indicat ed marker (TRIGger, X, or O ) at the cent er of the wavefo rm area on t he scope display. The CENTer co mmand adjusts the timebase delay to cause the trace t o be centered aro und the indicated marke r (s/Div remains unchanged) .
OAUTo Command :M AR Ke r: OA UT o {M AN ua l| CH AN ne l< N> ,< ty pe >, <l ev el >, <s lope >, <o ccur re nce> } The OAU To co mmand specifi es the aut omatic placeme nt specificat ion for the O marker. T he first parameter specifi e s i f automark er placement is t o be in the m anual mode or o n a specified channel.
OT IMe Command :M AR Ke r: OT IM e <O _m ar ke r_ ti me > The OTIMe co mmand move s the O marker t o the specified time with respect to t he t rigger mark er.
RUNTil (Run Unt il) Command :M AR Ke r:RU NT il {O FF|L T, <t ime> |G T,<t im e> |INR an ge,< ti me >,<t im e>| OU TRan ge ,< time >, <tim e> } The RU NTil com mand allows you to set a stop condi t ion b ased on t he time interval bet ween the X marker and the O marker.
SHOW Command :MA RK er :S HO W {S AM Pl e| MA RK er } The SHOW comma nd allows you t o select either SAMP le rate or MARKer data (when markers are enabled) to appear on the oscillosco pe menus above the wavefo rm area. The SAMPle rate or MARKer data appears o n the channel, trigge r, display, and auto-m easure menus.
TMAXimum ? Query :M AR Ke r:TM AX imum ? The TMAXimum query returns the value of the maximum tim e bet ween t he X and O mark ers. If there is no valid data, the query re turns 9.
TMODe Command :M AR Ke r: TM OD e {O FF |O N| AU TO } The TMODe command allows you to select the time marker mode. The choices are OFF, O N, and AUTO. When OF F, time marker measure ments cannot b e made. When the time m arkers are turned o n, the X and O markers can be m oved to mak e time and voltage measurements.
VMODe Command :M AR Ke r:VM OD e {{ OF F| 0} | { ON|1 }} The VMODe command allows you to select the voltage marke r mode. T he choices are O F F o r O N. When O FF, vo ltage m arker measurement s canno t be made. W hen the vo ltage m arkers are t urned o n, the A and B markers can be moved to make volt age measurements.
VOTim e ? Query :M AR Ke r: VO Ti me ? CH AN NE L< N> The VOTi me query ret urns the current voltag e level o f the se lected so urce at the O marker.
VXTime? Query :M AR Ke r:XV OL t? C HA Nn el<N > The VXTime q uery returns the current vol tage leve l of the selected channel at the X marker. Returne d Format [: MA RKer :VXT ime] <lev el&g.
XAUTo Command :M AR Ke r: XA UT o {M AN ua l| CH AN ne l< N> ,< ty pe >, <l ev el >, <s lope >, <o ccur re nce> } The XAUTo command specifies the automat ic placement speci fication for the X m arker. The first parameter specifies if automarker placement is t o be in the Manual mode or on a specified channe l .
XOTim e? Query :M AR Ke r:XO Ti me? The XOTime query returns the time i n seconds fro m the X mark er to the O marker. If data is not valid, the query returns 9.
32 -2 0.
33 MEASu re Subsystem.
Introd uction The commands in the Meas ure S u b system are used to make automatic par ametric meas urements o n oscill oscope waveforms. Ex cept for SOU Rce, n o co mmands in the MEAS ure s ubsystem s et values.
Figu re 33 -1 MEASu re Subsy stem Sy ntax Diag ram Tab le 33 -1 MEASu re Paramet er Val ues Par ameter Val ue channel_# {1 |2} MEASu re Subsyste m 33 -3.
ALL? Query :M EA Su re:[ SO URce C HA Nnel <N >;]A LL ? The ALL query make s a set of measurem ents on the displayed waveform using the s electe d source.
FAL Ltim e? Query :ME AS ur e: [S OU Rc e CH AN ne l< N> ;] FA LL ti me ? The FALLtim e query make s a fall time measurement on the selected channel. The measureme nt is made between t he 90% to the 1 0% vol tage point o f the first fall ing edge displaye d on screen.
NWIDth ? Query :ME AS ur e: [S OU Rc e CH AN ne l< N> ;] NW ID th ? The NWIDt h query makes a ne gative width t ime measure ment on the selecte d channel. The m easurement is made b e t ween the 5 0% po ints of the first falling and the next rising edge display ed on screen.
PERiod ? Query :ME AS ur e: [S OU Rc e CH AN ne l< N> ;] PE Ri od ? The PERiod query make s a period measure ment of the first complet e cycle displayed o n the se lected channel at the 5 0% l evel. The measurem ent is equivale nt to the inverse of the frequency.
PWI Dth? Query :ME AS ur e: [S OU Rc e CH AN ne l< N> ;] PW ID th ? The PWIDth query makes a positive pulse width measure ment on the selecte d channel. The measurem ent is made b y finding the t ime difference betwe en the 5 0 % points of t he first rising and t he next falli ng edge displayed on screen.
SOURce Command :M EA Su re :S OU Rc e CH AN ne l< N> The SOURce com mand specifies the so urce to be used for sub s e quent measurement s . If t he source is no t specifie d, the last wave form source is assumed.
VAM Plit ude? Query :ME AS ur e: [S OU Rc e CH AN ne l< N> ;] VA MP li tu de ? The VAMPlit ude query makes a voltage measure ment on the selected channel. The m easurement is m ade by finding t he relative max imum (V T OP) and minimum (VBASe) point s on screen.
VMAX? Query :M EA Su re:[ SO URce C HA Nnel <N >;]V MA X? The VMAX que ry returns t he absolut e maxim um voltag e of the selecte d source. If a parameter cannot be measured, the instrument responds with 9.
VP P? Query :M EA Su re:[ SO URce C HA Nnel <N >;]V PP ? The VPP quer y makes a peak -to-peak vo ltage me asurement o n the se lected source. The measurement is made b y finding the absolute max imum (VMA X) and mi nimum (VMIN ) poi nts on t he displayed wavefo rm.
34 TIM eb ase Subsystem.
Introd uction The command s of the TIMe base Subsystem con trol the Timebase , Tri gger Delay Time, and th e Time base M ode . If TRIGg ered mod e is to be used, ensu re that th e tr igger speci fication s of the Trigger Subsys tem have be en set.
Figu re 34 -1 TIM ebase Sub syst em Sy ntax Di agra m Tab le 34 -1 T I Mebase Para meter Values Par ameter Val ue delay_ar g delay time in sec onds, fr om -2500 se conds thro ugh +2500 s econds.
DELay Command :T IM eb as e: DE La y <d el ay _t im e> The DELay command sets the time between the trig ger and the center of the screen. The full range is available for panning the waveform when acquisi tion is s topped. <delay_time> delay time in seconds, from -2500 seconds thro ugh +2500 seconds.
MODE Command :TI Me ba se :M OD E {T RI Gg er ed |A UT O} The MOD E command s ets the oscillo scope t imebase t o either Auto o r Triggered mo de. When the AUTO mode is chosen, the oscill oscope wai ts approxim ately 5 0 ms fo r a trigge r to occur. If a trigger is not generat ed within t hat time , then aut o trigger is execut ed.
RANGe Command :T IM eb as e: RA NG e <r an ge > The RANG e command sets the full -scale hori zontal time i n seconds. The RANGE value is ten t imes t he value in the s / Div fi eld.
35 TRIGger Subsystem.
Introd uction The command s of the Trigger S u b s ystem se t all the trigger co ndition s necess ary for ge nerating a trigger for the o scillos cope. M any of the command s in the Trigger subs ystem may be used in either the EDG E or the PATTern trigger mo de.
Figu re 35 -1 TRIGg er Subsyst em Synt ax Diag ram TRIGg er Subsys tem 35 -3.
Figu re 3 5-1 (conti nued) TRIGg er Subsyst em Synt ax Diag ram ( continu ed) Tab le 35 -1 TRIGger Par ameter Values Par ameter Val ue channel_# An integer from 1 t o 2 count_ # an integer from 1 thr ough 3 2000 level_v alue a rea l number from -6 .0 V to +6.
CONDition Command :TR IG ge r: [M OD E PA TT er n: ] CO ND it io n {E NT er |E XI T| GT ,<ti me >| LT,< ti me>| RA NG e,<t im e>,< ti me >} The C ON Dition command specifie s i.
When LT (le ss than) is selected, the o s cillosco pe will t rigger on the first transiti on t hat causes the pattern specificat ion to be fals e, after the patte rn has b een true for the number of times specifi ed b y the trigg er eve nt count (DELAY co mmand).
DELay Command :T RI Gg er:D EL ay [ EV EN t,]< co unt> The DELay command i s used to specify the number of events at which trigger occurs. The t ime delay (see TIMe:D ELay) is counted after the event s delay. The D ELay co mmand cannot b e used in t he IMMediate trigger mode .
LEV el Command Fo r EDGE trigg er mod e: : TR IG ge r: [M OD E ED GE :S OU Rc e CH AN ne l< N> ;] LE Vel< va lu e> For PATT ern trigger mo de: :T RIGg er :[ MODE P ATTe rn :P ATH CH ANne l< N> ;] LE Vel< va lu e> The LEVel command sets the trigger level voltage for the selected source or path.
Query Fo r EDGE trigg er mod e: : TR IG ge r: [M OD E ED GE ;S OU Rc e CH AN ne l< N> ;] LE Ve l? For PATT ern trigger mo de: :T RIGg er :[ MODE P ATTe rn ;P ATH CH ANne l< N> ;]LE Ve l? The LEVel q uery returns t he trigger leve l for the current path or source.
LOGic Command :T RI Gg er:[ MO DE P AT Te rn;P AT H CH AN ne l<N> ;] LOG ic {H IGH| LO W| DONT ca re} The LOG ic command s ets the lo gic for each trigger path in the PATTern trigger mode . The choices are HIGH, LOW, and D O NTcare. T he trigger level set by t he LEVel co mmand dete rmines logic hi gh and low t hresho ld levels .
MODE Command :T RI Gg er :M OD E {E DG E| PA TT er n| IM Me di at e} The MOD E command al lows you to s e lect the trigger mode for the oscillo sco pe. In the IMMediate trigg er mode, the osci ll o scope goes to a freerun mode and does not wait for a trigger.
PA TH Command :TR IG ge r: [M OD E PA TT er n; ]P AT H CH AN ne l< N> The PATH com mand is use d to se lect a t rigge r path for t he subs e quent LOGic and LE V el co mmands.
Query :T RI Gg er:S LO Pe? The SLOP e query returns t he slope of the current t rigger source. Returne d Format [ :T RI Gg er :S LO Pe ] {P OS it iv e| NE Ga ti ve }< NL > Example OUT PU T XX X;.
35 -1 4.
36 WAVeform Subsystem.
Introd uction The command s of the Waveform subs ystem are use d to transfer waveform data from th e o scilloscope to a contr oller. The waveform reco rd i s actually contain e d in two portio n s; the waveform data and preamble . T he waveform d ata is the actual data acqu ired for each point when a DIGitize comm a n d i s executed .
Format for Data Transfer There are thre e formats for transferring waveform data over the re mote interface. These formats are WORD, BYTE, or ASCII. WORD and BYTE form atted wavefo rm records are t ransmit ted using the arbitrary block program data format specifi ed in IEEE-48 8.
WORD Form at Word dat a is two byt es wide wit h the mo st significant byte of each wo rd being transmitt ed first. In W ORD form at, the 15 leas t signifi cant bit s represent the waveform data. The possible range of data is divi ded into 32768 verti cal increment s .
Data Convers ion Data sent from the osci lloscope is raw data and must be scaled for useful interpret ation. T he values used to interpret the data are t he X and Y references, X and Y origins, and X and Y increm ents. These values are rea d from the waveform preamble (see the PREamb le command) or by the queries of thes e values.
Figu re 36 -3 WAVef orm Subs ystem Syn tax Di agram WAVefo rm Subsys tem Data Conv e rsi on 36 -6.
Figu re 3 6-3 (conti nued) WAVef orm Subs ystem Syn tax Di agram (Cont inued) Tab le 36 -1 WAVefo rm Paramete r Values Par ameter Val ue channel_# {1 |2} WAVef orm Subsyste m Data Con version 36 -7.
COUNt? Query :W AV ef orm: CO UNt? The C OUN t query returns the count last specified in the ACQuire Subsyst em. Returne d Format [: WA Ve form :COU Nt ] <cou nt>< NL> <count> {2|4|8.
FOR Mat Command :W AV ef orm: FO RMat { BY TE|W OR D|AS Ci i} The FORMat co mmand specifies the dat a transmis sion mo de of wavefo rm data over the remote inte rface. See "Format for Data Transfer" earlier in this chapter for information o n the formats.
PREam ble? Query :W AV ef or m[ :S OU Rc e CH AN ne l< N> ;] PR Ea mb le ? The PREamb le q uery returns the preamb le of the specifi ed channel. The channel is specifie d using the SOURCE comm and.
REC or d Command :W AV ef orm: [S OURc e CH ANne l< N>;] RE Co rd { FU LL|W IN Do w} The RECord co mmand specifies t he data yo u want to receive o ver the b us. The choices are FULL or WINdo w. When FULL i s chosen, the entire 8000-po int record of the specified channel is transmi tted over the bus.
Query :W AV ef orm: SO URce ? The SOURce query returns the presently sele cted channel. Returne d Format [: WA Vefo rm:S OURc e] C HANn el<N ><NL > Example O UTPU T XXX; ":WA VEFO RM:S OURC E? " SP E Rio d ? Query :W AV ef orm: SP ERio d? The SPERio d q uery ret urns the pres ent sampling peri od.
VA Lid ? Query :W AV ef orm: VA Lid? The VALid query checks the osci l loscope for acquired data. If a measurement is com pleted, and data has been acq uired b y all channels , the n the query report s a 1 . A 0 i s reported if no data has been acquire d for the last acquisi tion.
XORigin? Query :W AV ef or m: [S OU Rc e CH AN ne l< N> ;] XO Ri gi n? The XORig in query returns the X origi n value currently in the preamble. The value represents the tim e of the first data point in memory with respect to the tri gger point .
YINCre m en t? Query :W AV ef or m: [S OU Rc e CH AN ne l< N> ;] YI NC re me nt ? The YIN Crement q uery ret urns the Y i ncrement value currently in the preamble .
YREF erence? Query :W AV ef orm: YR EFer en ce ? The YREFere nce query returns the Y refe rence value currently in the preamble . This value specifi es the dat a value at center scree n where Y origin occurs.
Pa rt 5 Pattern Gen erator Command s.
.
37 Programming the Pattern Generator.
Prog ramm i ng the Patte rn Gene rator This chapter p rovides you wi th the i nformatio n n eeded to p rogr am the pattern generator of the A gilent 1 670G-se ries lo gic an alyzer.
Prog ram ming Ov e r v i ew This secti o n introdu ces you to the basic command structu re used to program th e pattern gener ator. Example Pattern Generator Program A typical pattern g enerator pro g.
Line 30 assigns lab el ’A’ , positive pol arity and ass igns the seven least significant bits of pod 5 Line 40 assigns lab el ’B’ and assigns all eight bits of pod 4 Line 50 rem oves all program line s Line 60 inserts a new line (after l ine 0) in the IN IT SEQUEN CE portio n of the program.
Com mand Set Organization The command set for the Agile nt 1670G pattern generat or is divided into four separate s ubsystems. The subsy stems are : FORMat, SEQ uence, MACRo, and the SYMBol subsys tem . Each of t he subs y stems comm ands are covered in their indi vidual secti ons late r in this chapter.
Table 3 7-1 sho ws t he alphabe tical com mand to subs y stem di rectory. Tab le 37 -1 Alphabet i c al Command t o Sub syste m Direc tory Command W here Used BASE S YMBol CLOCk F ORMat COLumn S EQuenc.
Patte rn Ge nera tor Level Comm ands The Patt ern Generat or Level Commands co ntrol the o peration of patter n generato r programs. The two commands are STEP and RESume. Patter n Generator Lev e l Syn tax Di agram count = intege r from 1 to 1 00,000 spe cifying the numb er of vect ors st epped.
STEP Command/Que ry The STEP co mmand consis ts of fo ur types: the STEP Count command, the STEP command, the the ST EP query, and the STEP FSTate command. The STEP Co unt command specifi es the ve ctor range for t he STEP command. The valid vector range for the STEP Count command is from 1 t o 100,00 0.
Query :S TE P? Returne d Format [S TEP] < co unt> Example 10 DI M Sc $[ 10 0] 20 OUT PU T XXX; ": STEP ?" 3 0 EN TE R XX X; Sc $ 4 0 PR IN T Sc $ 50 END This exam ple queries and prints the st ep count.
RESum e Command W hen the pat tern generator encount ers a BREAK instruct ion, program execut ion is hal ted. The RESume co mmand allows the prog ram to conti nue until ano ther BREAK inst ruction is enco untered, or unt i l the e nd of the program is reached.
38 FORMat Subsystem.
FOR M a t Subsyste m The commands of the F ormat sub system cont rol the pattern generato r values such as data output rate, delay, and t he channels that y ou want t o be active. The Form at subs ystem al so lets yo u specify t he clock source and al lows yo u to gro up channels toge ther under a co mmon, us er-defined name.
CLOCk Command/Que ry The CLOCk command is used to speci fy the clo ck source for the patte rn generato r. The choices are INTernal or EXTernal. Wit h an internal clock source, t he cl ock perio d must al s o be specified ( real number val ue).
DELay Command/Que ry The DELay command is used to speci fy the clo ck out delay. The clock o ut delay setti ng all ows positioning of the clock with respect to the data. The delay set ting t hat correspo nds to zero i s uncalibrat ed and must be me asured by t he user to determi ne the b asic clock/dat a t iming.
LABel Command/Que ry The LABel command insert s a new label or modifies the contents of an exist ing lab el. If more than 126 lab els are specified, and an atte mpt is made to insert anot her new label, the last label (b ottom lab e l) will be modifi ed.
<channel assignment> a string in one o f the fol lowing fo rms: ’#B01...’ for binary ’#Q01234567..’ for oct al ’#H0123456789ABCDEF...’ for hex adecimal ’0123456789.
MODe The MOD e command i s used to spe cify eithe r FULL or HA LF channel output mode. Half channel mode allows a higher output data rate (greater than 100 MHz) , but with only 20 channels per . Full channe l output mode limit s t he maxim um dat a rate to 100 MHz but allows us e o f 40 channel s per .
REMove Command The REMo ve is used to delete a single lab el, or al l lab els fro m t he format menu. If a l abel name is specifi ed, it m ust ex actly mat ch a label name currently active in the format menu.
39 SEQuen ce Subsystem.
SE Quence Subsy stem The commands of the Seque nce subsyste m allow y ou to write a pat tern generato r program using t he parameters set in the Format subsystem .
SEQuenc e Subsystem Syn tax Di agram (cont .) column_num = an int eger s pecifying the c olumn t hat i s to rece ive t he new label label _name = the label name that is to be r emoved pr og_li ne_ num = an intege r specifying t he program line numbe r label _val ue = a string in one of the fo ll ow ing forms : ’#B01.
COLum n Command/Que ry The COLumn comm and allows you to reorder the label s in the Sequence and Macro menus and set the numerical base for each label .
EPATtern Command/Que ry The EPATt ern command i s used to specify the e vent patt erns used b y the WAIT and IF commands. The patte rn generato r has three ex ternal input qualifie rs (W AIT2, WA IT1, and WAIT0) . There are e ight combinatio ns of th e three input qualifi ers that may be OR’ed toget her to create an event pattern specificati on.
Example To specify an event pattern of (0, 1, 0) [ Wait 2=0 , Wait 1=1, Wait 0=0] use a <pattern_s pec> of 4 ( 000 0 0 100 ). To specify an event pattern of (0 , 0, 0 ) use a <pattern_spe c> of 1 (00 00 00 01 ). To specify an event pat tern of (0 , 1, 1) OR (1 , 1, 0) OR ( 1, 1, 1) use a <pattern_s pec> of 200 (1100 1000).
INS ert Command The IN Sert command is the b asic command used to build a pat tern gene rator sequence . This com mand is used t o inse rt (o r add) a se quence state ment after the specified line num b er. The first paramete r is the line number. The instructi on i s inserte d in the sequence after the specified l ine number.
Instru ctio ns NO O P The NOOP instruct ion means there is no inst ruction for thi s line. BREak The BRE ak instructio n causes the execut ion of the s equence t o stop at this l ine. Us e the RESum e command to advance to t he next sequence line . SIGNal The SIGN al instruct ion is the complement of the W AIT IMB instructi on.
inserting lines as needed. The re peat loo p is assi gned a loop numb er by the system and is used to conne ct the l imits o f the repe at loop. Not e that there are locati on restri ctions on the use of the REPeat inst ructio n. MACRo# The MACRo# inst ruction i s used to invoke a previ ously defined user macro.
PROGram Command/Que ry The PROGram command is used t o modi fy an existing pat tern generat or sequence line . The first paramete r is the line number.
Instru ctio ns NO O P The NOOP instruct ion means there is no inst ruction for thi s line. BREak The BRE ak instructio n causes the execut ion of the s equence t o stop at this l ine. Us e the RESume co mmand to advance to t he next li ne sequence. When opera ting at 20 0 MH z you ca n not have t wo Break e v ents in s uccession.
REPeat The REP eat ins truct ion allo ws a group o f seque nce state s to be execut ed repetitivel y so me numb er of ti mes. The repeat count is specified i n the optio nal instruct ion argument parame ter. The REPeat and END L O OP seque nce lines cannot be mo dified ot her than b y changing the l oop co unt.
<line_number> integer where instruct i on/dat a will be modifie d <optional_ label> a string of up to 6 alphanumeric characters specifying the label where modificat ion b egins. <event> {A|B|C|D|IF|IMB} <count> integer repeat count <#> macro numb er <data_value> a string in one o f the fol lowing fo rms: ’#B01.
REMove Command The REMo ve command allo ws you t o remove one or several line s from t he pattern g enerator program. If only one param eter number i s gi ven, that line number i s delete d. If two numbers are given, t he range of lines b etween t hose two value s inclusive is de l eted.
40 MACRo Su bsyst em.
MACR o Subs y ste m The commands of t he MACRo subs y stem allow you to write and edit macros for use in the patt ern generat or program. Up to 1 0 0 macros may b e called into the main listing program. The macros are labeled Macro0 thro ugh Macro99. Macro0 is always available (init ial conte nts are START/END lines only ).
Figu re 40- 1 MACRo Subs ystem Syntax D iagram MACRo Sub s ys tem 40 –3.
Figu re 40- 1 ( conti nued) MACRo Subs ystem Syntax D iagram ( cont.) prog_l ine_ num = an intege r specifying t he program line numbe r macro_n ame = character str ing up to 6 cha racters in length m.
INS ert Command The IN Sert command is the b asic command used to build a pat tern gene rator macro. This command is used t o inse r t (o r add) a macro state ment after the specified l ine number. The first paramete r is the line number. The instructi on and/or data will be inserted in the macro after the specified line numb er.
SIGNal The SIGN al instruct ion outputs a si gnal to the inte rnal Intermodul e Bus (IMB). This signal is used to t rigger the logic analyz er. WAIT The WAI T instructio n causes the pattern generator to stop and wait for the occurrence of the specifi ed event pat tern(s ).
Command Sy ntax :MAC Ro <m #>:I NS ert <l in e_nu mb er>, { N OOP | WA IT,< ev en t> | S IGNa l | REPe at ,<co un t> | B RE AK } ,< data _v al ue>, <d ata_ va lu e>,.
NAME Command/Que ry The NAME comm and is used to specify a name for a macro. This name will then appear i n the front panel lists and displ ays in place of t he more generi c "Macro #" string. The name cannot be used to reference the macro in programs.
PARameter Command/Que ry The PARame ter command is used to enable and name paramete rs for a macro. The parameter name is optional , and if used, is for us e on displ ays and listi ngs only. When a parameter is enabled, macro calls from the sequence can pass values to the macro .
PROGram Command/Que ry The PROGram command is used t o modi fy an existing pat tern generat or macro line . The first paramete r is the line number of the instructi on to be modified. Note that so me lines cannot b e modifi ed (MACRO and MACRO EN D) and som e instructi ons can have paramete rs modifie d.
Instru ctio ns NO O P The NO O P i nstruct ion means there is no operatio n for this line. BREak The BRE ak instructio n causes the e xecut ion of the macro t o stop at this l ine. Us e the RESume co mmand to advance to t he next li ne macro. SIGNal The SIGN al instruct ion outputs a si gnal to the inte rnal Intermodul e Bus (IMB).
Command Sy ntax :MAC Ro <m #>:P RO Gram < li ne_n um ber> , [< opti on al _lab el >,]{ N OO P | WA IT,< ev en t> | S IGNa l | REPe at ,< coun t> | B RE AK } ,< data _v al ue>, <d ata_ va lu e>,.
REMove Command The REMo ve allows yo u to remove one or several line s from t he macro. If only o ne parameter is g iven, only that li ne is dele ted. If two num b ers are specified, the range of lines bet ween those values, inclusi ve, is delete d.
40 –1 4.
41 SYMBol S u bsystem.
SYM Bol Subs yste m The SYMBol sub system co ntains the com mands that allow yo u to defi ne symbo ls on the co ntroller and do wnload them to t he Patt ern Generat or.
<labe l_name> = st ring of up t o 6 alph anumeric cha racters <symbo l_name> = st ring of up t o 16 alphanumer ic charact ers <patt ern_v alue> = st ring of one of the f ollowing f orms: ’#B01X...’ for binary ’#Q01234567X..’ for octal ’#H012 345678 9ABCDEF X.
BASE Command The BASE command sets the base in which symb ols for the specified label will be displayed in the symb ol menu. It also specifies the bas e in which the symbo l offsets are displayed when sym b ols are use d. Not e that BINary is not availab le for l abels with more than 20 bits assig ned.
PATTern Command The P ATTern co mmand allows you to specify a symbo l fo r a pattern on t he specified l abel. The pattern m ay contain "don’t cares" in t he form of XX .
RANGe Command The RAN Ge command al lows yo u to create a symbo l for a range of values on a lab el. Note that Don’ t Cares are not allowed in range symbo ls.
REMove Command The REMove command delet es all symbol s fro m the symb ol menu. Command Sy ntax: :S YM Bo l: REMo ve Example OUTPUT XXX;":SYMBol:REMove" SYMBol Sub system REMove 41 –7.
WIDTh Command The WID Th command specifies the numb er of characters displayed when symbols are used. Note that the WIDTh command does not affect the display ed le ngth of the symbo l value.
42 DATA and SETup Com mands.
Data a nd Se tup C ommands The DATA and SETup commands are sys tem commands t hat allo w you to send and receive instrument configurat ion, setup and program data t o and from a co ntroller in block form. Thi s is useful for saving b l ock data for re-loading the patt ern generat or.
<section data> The section dat a format varies fo r each section and may be any l ength. Not e that t he tot al lengt h of a sectio n is 16 (for t he secti on header) plus the length o f the sectio n data. Thus, when calculating the length o f a blo ck of configurati on data, do n’t fo rget t o add the lengt h of the headers.
SYSTem:DA TA The DATA command is us ed to send and receive the patt ern generato r mai n program listi ngs and the macro listings . The comple te pattern generato r data block co nsists o f two s ections not count ing the SYMBO L se ction.
SYST em:SETup The SETup command for the pattern generato r is used to configure syste m parameters, such as the pod and bit assig nment, clo ck rates, and o utput mode b y l oading saved configuratio ns. The "CONF IG" section consi sts of 4082 b ytes of informati on which fully describe the main paramet ers for t he pattern generator.
42 –6.
Pa rt 6 Pro gramm ing E xamples.
.
43 Pro gramm ing E xamples.
Introd uction This chap ter contain s short, usable , and tested p rogra m examples that cover the most asked for cases. HP BASIC 6.2 . • Mak ing a timin g analyzer measuremen t • Mak ing a s tate.
Making a Timing Analyzer Measurement This program s ets up t he l ogic analyzer t o mak e a simple ti ming analyz er measurement . This example can be us ed with t he E2433 Log ic Analyzer Training Board to acquire and display the out put of the ripple counter.
3 60 O UT PU T 70 7; ": MA CH 1: TW AV EF OR M: RE MO VE " 3 70 O UT PU T 70 7; ": MA CH 1: TW AV EF OR M: IN SE RT ’ CO UN T’ , AL L" 3 80 O UT PU T 70 7; ": MA CH 1: TW .
Making a State Analyzer M eas urement This stat e analyzer prog ram select s t he Agilent 167 0G-seri es logi c analyzer, displays t he configuratio n menu, define s a state machi ne, displays the s t ate trigger menu, and sets a state trigg er for multile vel trigg ering.
33 0 ! 34 0 OUTP UT 7 07;" :MEN U 1, 3" 35 0 ! 3 60 ! C re at e a 5 le ve l tr ig ge r sp ec if ic at io n wi th t he t ri gg er o n th e 37 0 ! fo urth lev el.
78 0 ! ** **** **** **** **** **** ** N OTE **** **** **** **** **** *** 79 0 ! T he F IND comm and sele cts the trig ger in t he 8 00 ! se qu en ce l ev el s pe ci fi ed a s th e tr ig ge r le ve l.
12 40 ! di spla y. 12 50 ! 1 26 0 O UT PU T 70 7; ": MA CH IN E1 :S LI ST :C OL UM N 1, ’ SC OU NT ’, D EC IM AL " 12 70 OUTP UT 7 07;" :MEN U 1, 7" 1 28 0 O UT PU T 70 7; &quo.
Making a State Com pare Measurement This program example acqui res a state listing, copie s the listi ng to the compare listi ng, acq uires another stat e listing, and compares bo th list ings to find differences . This program is written so that y ou can run it with the E2 433 Logi c Analyze r Training Board.
34 0 ! no sta tes unti l th e tr igge r is fou nd. 35 0 ! 3 60 O UT PU T 70 7; ": MA CH IN E1 :S TR IG GE R: SE QU EN CE 2 ,1 " 3 70 O UT PU T 70 7; ": MA CH IN E1 :S TR IG GE R: TE RM .
7 60 O UT PU T 70 7; ": MA CH IN E1 :C OM PA RE :L IN E 61 43 9" 7 70 O UT PU T 70 7; ": ST AR T" 78 0 ! 79 0 ! Th e la st l ine of t he l isti ng i s no w di spla yed at c ente r sc reen 80 0 ! in ord er t o sh ow t he l ast four sta tes acqu ired .
11 90 !*** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** * 12 00 ! Di mens ion stri ngs in w hich the com pare fin d qu ery (COM PARE :FIN D?) 12 10 ! en ters the lin e nu mber s an d er ror numb ers.
16 20 ! ** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** 1 63 0 ! T es t fo r th e la st e rr or . Th e er ro r nu mb er o f th e la st e rr or i s th e sa me 1 64 0 ! a s th e er ro r nu mb er o f th e fi rs t nu mb er a ft er t he l as t er ro r.
Transferring the Logic Analyzer Configu ration This program uses the SYSTem:SETup ? query to transfer the log ic analyze r configurati on to your controll er. T hi s program also uses the SYSTem:SETup command to transfer a logic analyzer configurat ion from the controll er back to the logic analyzer.
34 0 ! 3 50 ! * ** ** ** ** ** ** ** ** ** * TR AN SE R TH E SE TU P ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** 36 0 ! Tr ansf er t he s etup fro m th e lo gic anal yzer to the buff er.
7 80 ! * ** ** ** ** ** * TR AN SF ER S ET UP T O TH E Ag il en t 16 70 G ** ** ** ** ** ** ** ** 79 0 ! Tr ansf er t he s etup fro m th e bu ffer to the Agil ent 1670 G.
Checkin g fo r Measurement Com pletion You can append this program or insert it into another program when you need to know when a measurement is complete. If it is at the end of a program it will tell you when measureme nt is complet e. If you insert it into a program, i t wi ll halt the pro gram until the current measurement i s complet e.
Sending Queries to the Logic Analyz er This program example cont ains the steps required to send a query to the logic analyz er. Sending the query alone only puts the req uested informat ion in an out put buffer of the l ogic analyz er. Yo u must fo l low the query wi th an ENTER state ment to transfer t he query response to the cont roller.
3 10 ! S en d th e qu er y. In t hi s ex am pl e th e ME NU ? qu er y is s en t. Al l 3 20 ! q ue ri es e xc ep t th e SY ST em :D AT A an d SY ST em :S ET up c an b e se nt w it h 33 0 ! th is p rogr am.
43 –2 0.
Index ! *CLS comman d, 8–5 *ESE co mmand , 8–6 *ESR comman d, 8–7 *IDN comman d, 8–9 *IST comman d, 8–9 *OPC comman d, 8–11 *OPT co mmand, 8–12 *PRE command , 8–13 *RST comman d, 8–14 *SRE comman d, 8–15 *STB comman d, 8–16 *TRG comman d, 8 –17 *TS T co mmand , 8–18 *WAI command , 8–19 .
OVERVie w:HI GH, 25–9 OVERVie w:LABel, 25–10 OVERVie w:LOW, 25–11 OVERVie w:OM ARker, 25–13 OVERVie w:XMAR ker, 2 5–15 PACK, 12–18 PATTe rn, 26–6 PR I Nt, 11–10 PURGe , 1 2–18 RANGe,.
G GET, 2–6 Group ex ecute trigger, 2–6 H HAXis command /query, 19–5 HEADer command , 1–16 , 11–8 Headers, 1–6, 1– 8, 1–11 HISTogram: H STatisti c q uery, 25–16 HIST o gram: LABel co .
P PACK command , 1 2–18 Paramet er sy ntax r ules, 1–12 Paramet ers, 1–7 Parit y, 3– 9 Parse tree , 5 –8 Parser , 5–3 PATTern command, 26–6 PON, 6–5 Preamb le descri ption, 27–6 PRIN.
XTAG , 17–22, 24–21 XTIMe, 14–10 , 23–25 Query errors, 7–5 query program e xamp le, 28–18 Query res pon se s, 1–15, 4 –4 Q ue sti on m ar k, 1– 10 QYE, 6–5 R RANGe command, 26–7 .
SF O Rmat Subsyste m, 1 5–3 SLISt Subsyste m, 1 7–3 STRigger Su bsystem, 16–3, 16 – 4, 16–5 SWAVeform Subsystem, 18–3 SYMB ol Su bsyst em, 26–3 TFOR mat Su b syst em, 21–3 TLIS t Sub syst em , 24–3 TTRig g e r S ubsyst em, 22–3 TWAVe form S ubsy stem, 23–3, 23–4 WLIS t Sub syst em, 14–3 Syntax diagrams IEEE 488.
© Copyright Agilent Technologies 1992-2 002 All Rights Reserved. Reproduction, adaptation, or translation without prior written permission is prohibited, except as allowed under the copyright laws. Restricted Rights Legen d Use, duplication, or disclosure by the U.
Produc t Warranty This Agilent Technologies product has a warranty against defects in material and workmanship for a period of one year from date of shipment. During the warranty period, Agilent Technologies will, at its option, either repair or replace products that prove to be defective.
An important point after buying a device Agilent Technologies 1670G (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Agilent Technologies 1670G yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Agilent Technologies 1670G - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Agilent Technologies 1670G you will learn all the available features of the product, as well as information on its operation. The information that you get Agilent Technologies 1670G will certainly help you make a decision on the purchase.
If you already are a holder of Agilent Technologies 1670G, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Agilent Technologies 1670G.
However, one of the most important roles played by the user manual is to help in solving problems with Agilent Technologies 1670G. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Agilent Technologies 1670G along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center