Programming Examples

Making a State Analyzer Measurement

720! ***************** CONFIGURE SEQUENCE LEVEL 4 ***************************

730! Store a combination of resource terms (C or D or RANGE1) in level 4 and

740! Then Trigger on resource term "E."

750!

760OUTPUT 707;":MACHINE1:STRIGGER:STORE4 ’(C OR D OR IN_RANGE1)’"

770!

780! ************************ NOTE ***********************

790 !

The FIND command selects the trigger in the

800! sequence level specified as the trigger level.

810! *****************************************************

820!

830OUTPUT 707;":MACHINE1:STRIGGER:FIND4 ’E’,1"

840!

850! ***************** CONFIGURE SEQUENCE LEVEL 5 ***************************

860! Store anystate on level 5

870!

880OUTPUT 707;":MACHINE1:STRIGGER:STORE5 ’ANYSTATE’"

890!

900! ***************** START ACQUISITION ************************************

910! Place the logic analyzer in single acquisition mode, then determine when

920! the acquisition is complete.

930!

940OUTPUT 707;":RMODE SINGLE"

950!OUTPUT 707;"*CLS"

960OUTPUT 707;":START"

970!

980! ****************** CHECK FOR MEASUREMENT COMPLETE **********************

990! Enable the MESR register and query the register for a measurement

1000 ! complete condition.

1010 !

1020 OUTPUT 707;":SYSTEM:HEADER OFF"

1030 OUTPUT 707;":SYSTEM:LONGFORM OFF"

1040 !

1050 Status=0

1060 OUTPUT 707;":MESE2 1"

1070 OUTPUT 707;":MESR2?"

1080 ENTER 707;Status

1090 !

1100 ! Print the MESR register status.

1110 !

1120 CLEAR SCREEN

1130 PRINT "Measurement complete status is ";Status AND 1

1140 PRINT "0 = not complete, 1 = complete"

1150 ! Repeat the MESR query until measurement is complete. 1160 WAIT 1

18–7