Programming Examples

Making a State Analyzer Measurement

Making a State Analyzer Measurement

This state analyzer program selects the HP 16554A/HP 16555A/HP 16555D module, displays the configuration menu, defines a state machine, displays the state trigger menu, 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 HP E2433-60004 Logic Analyzer Training Board. This example is the same as the "Multilevel State Triggering" example in chapter 9 of the HP E2433 Logic Analyzer Training Kit.

10 ! ******************** STATE ANALYZER EXAMPLE *************************

20!for the HP 16554A/HP 16555A/HP 16555D Logic Analyzer

30!

40! ************* SELECT THE HP 16554/HP 16555 MODULE *******************

50! Select slot in which the HP 16554A/HP 16555A/HP 16555D is installed.

60! In this example, it is in slot B of the mainframe.

70!

80OUTPUT 707;":SELECT 2"

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 Configuration menu of the

130! HP 16554A/HP 16555A/HP 16555D.

140!

150OUTPUT 707;":MACHINE1:NAME ’STATE’"

160OUTPUT 707;":MACHINE1:TYPE STATE"

170OUTPUT 707;":MACHINE1:ASSIGN 1"

180OUTPUT 707;":MENU 2,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!

240OUTPUT 707;":MACHINE1:SFORMAT:REMOVE ALL"

250OUTPUT 707;":MACHINE1:SFORMAT:LABEL ’SCOUNT’, POS, 0,0,255"

260!

18–5