Agilent Technologies Printer Accessories 1670G ユーザーズマニュアル

ページ / 626
Making a State Compare Measurement
This program example acquires a state listing, copies the listing to the
compare listing, acquires another state listing, and compares both listings to
find differences.
This program is written so that you can run it with the E2433 Logic Analyzer
Training Board.  This example is the same as the "State Compare" example in
chapter 3 of the Logic Analyzer Training Kit.
10    ! *********** STATE COMPARE EXAMPLE ********************************
20    !            for the Agilent 1670G-series Logic Analyzer
30    !
40    !
50    !************ SELECT THE Agilent 1670G MODULE ****************
60    ! Select the module slot in which the Agilent 1670G is installed.
70    !
80    OUTPUT 707;":SYSTEM:HEADER OFF"
90    OUTPUT 707;":SELECT 1"
100   !
110   !************** CONFIGURE THE STATE ANALYZER ***********************
120   ! Name Machine 1 "STATE," configure Machine 1 as a state analyzer in 
130   ! Compare mode, and assign pod 1 to Machine 1.
140   !
150   OUTPUT 707;":MACHINE1:NAME ’STATE’"
160   OUTPUT 707;":MACHINE1:TYPE COMPARE"
170   OUTPUT 707;":MACHINE1:ASSIGN 1"
180   !
190   ! ******************************************************************
200   ! Remove all labels previously set up, make a label "SCOUNT," specify
210   ! positive logic, and assign the lower 8 bits of pod 1 to the label.
220   !
230   OUTPUT 707;":MACHINE1:SFORMAT:REMOVE ALL"
240   OUTPUT 707;":MACHINE1:SFORMAT:LABEL ’SCOUNT’, POS, 0,0,255"
250   !
260   ! ******************************************************************
270   ! Make the "J" clock the Master clock and specify the falling edge.
280   !
290   OUTPUT 707;":MACHINE1:SFORMAT:MASTER J, FALLING"
300   !
310   ! ******************************************************************
320   ! Specify two sequence levels, the trigger sequence level, specify
330   ! FF hex for the "a" term which will be the trigger term, and store
Programming Examples
Making a State Compare Measurement
43–9