Agilent Technologies 1670G Printer Accessories User Manual


 
780 ! ************************ NOTE ***********************
790 ! The FIND command selects the trigger in the
800 ! sequence level specified as the trigger level.
810 ! *****************************************************
820 !
830 OUTPUT 707;":MACHINE1:STRIGGER:FIND4 ’E’,1"
840 !
850 ! ***************** CONFIGURE SEQUENCE LEVEL 5 ***************************
860 ! Store anystate on level 5
870 !
880 OUTPUT 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 !
940 OUTPUT 707;":RMODE SINGLE"
950 OUTPUT 707;"*CLS"
960 OUTPUT 707;":START"
970 !
980 ! ****************** CHECK FOR MEASUREMENT COMPLETE **********************
990 ! 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
1070 OUTPUT 707;":MESR1?"
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
1170 IF (Status AND 1)=1 THEN GOTO 1190
1180 GOTO 1070
1190 PRINT TABXY(30,15);"Measurement is complete"
1200 !
1210 ! ************************ VIEW THE RESULTS *****************************
1220 ! Display the State Listing and select a line number in the listing that
1230 ! allows you to see the beginning of the listing on the logic analyzer
Programming Examples
Making a State Analyzer Measurement
43–7