A SERVICE OF

logo

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 707;":SELECT 1"
90 !
100 ! ******************** CONFIGURE THE STATE ANALYZER **********************
110 ! Name Machine 1 "STATE," configure Machine 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 707;":MACHINE1:NAME ’STATE’"
160 OUTPUT 707;":MACHINE1:TYPE STATE"
170 OUTPUT 707;":MACHINE1:ASSIGN 1"
180 OUTPUT 707;":MENU 1,0"
190 !
200 ! ******************* SETUP THE FORMAT SPECIFICATION *********************
210 ! Make a label "SCOUNT," give the label a positive polarity, and
220 ! assign the lower 8 bits.
230 !
240 OUTPUT 707;":MACHINE1:SFORMAT:REMOVE ALL"
250 OUTPUT 707;":MACHINE1:SFORMAT:LABEL ’SCOUNT’, POS, 0,0,255"
260 !
270 ! ******************* SETUP THE TRIGGER SPECIFICATION ********************
280 ! The trigger specification will use five sequence levels with the trigger
290 ! level on level four. Resource terms A through E, and RANGE1 will be
300 ! used to store only desired counts from the 8-bit ripple counter.
310 !
320 ! Display the state trigger menu.
Programming Examples
Making a State Analyzer Measurement
43–5