Making a State Analyzer Measurement
This state analyzer program selects the Agilent 1670G-series logic analyzer,
displays the configuration menu, defines a state machine, displays the state
trigger menu, and sets a state trigger for multilevel triggering. This program
then starts a single acquisition measurement while checking for
measurement completion.
This program is written so that you can run it with the E2433 Logic Analyzer
Training Board.
10 ! ******************** STATE ANALYZER EXAMPLE *************************
20 ! for the Agilent 1670G Logic Analyzer
30 !
40 ! ************* SELECT THE Agilent 1670G MODULE *****************
50 ! Select the module slot in which the Agilent 1670G is installed.
60 !
70 !
80 OUTPUT 70 7;":SELECT 1"
90 !
100 ! ******************** CONFIGURE THE STATE ANALYZER **********************
110 ! Name Ma chine 1 "STATE," configure Machi ne 1 as a state analyzer, assign
120 ! pod 1 to Machine 1, and display System External I/O menu of the
130 ! Agilent 1670G Logic Analyzer.
140 !
150 OUTPUT 70 7;":MACHINE1:NAM E ’STATE’"
160 OUTPUT 70 7;":MACHINE1:TYP E STATE"
170 OUTPUT 70 7;":MACHINE1:ASS IGN 1"
180 OUTPUT 707;":MENU 1,0"
190 !
200 ! ******************* SETUP THE FORMAT SPECIFICATION *********************
210 ! Make a label "SCOUNT," give the label a positive polari ty, and
220 ! assign the lower 8 bits .
230 !
240 OUTPUT 70 7;":MACHINE1:SFO RMAT:REMOVE ALL"
250 OUTPUT 70 7;":MACHINE1:SFO RMAT:LABEL ’SCOU NT’, POS, 0,0,25 5"
260 !
270 ! ******************* SETUP THE TRIGGER SPECIFICATION ********************
280 ! The trigger specification will use five sequence levels with the trigger
290 ! level on level four. Res ource terms A through E, and RANGE1 will be
300 ! used to store only desi red counts from the 8-bi t ripple counter.
310 !
320 ! Display the state trigger menu.
Programming Examples
Making a State Analyzer Measurement
43–5