550 ! ******************** TRANSER THE DATA ********************************
560 ! Transfer the data from the logic analyzer to the buffer.
570 !
580 TRANSFER @Comm TO @Buff;COUNT Numbytes,WAIT
600 !
610 ENTER @Comm USING "-K";Length$
620 PRINT "LENGTH of Length string is ";Byte
630 !
640 PRINT "**** GOT THE DATA **** Press continue."
650 PAUSE
660 ! ********************* SEND THE DATA **********************************
670 ! Make sure buffer is not empty.
680 !
690 IF Numbytes=0 THEN
700 PRINT "BUFFER IS EMPTY"
710 GOTO 1170
720 END IF
730 !
740 ! ********************* SEND THE DATA COMMAND **************************
750 ! Send the Setup command
760 !
770 OUTPUT @Comm USING "#,14A";":SYSTEM:DATA #"
780 PRINT "SYSTEM:DATA command has been sent. Press continue."
790 PAUSE
800 !
810 ! ********************* SEND THE BLOCK DATA ****************************
820 ! Send the block data header to the HP 16554A/HP 16555A in the proper
821 ! format.
830 !
850 OUTPUT @Comm USING "#,A";"8"
860 Str1$=DVAL$(Numbytes,10)
870 Byte=1
920 PRINT USING "AAAAAAAA";Str1$[4]
930 OUTPUT @Comm USING "#,AAAAAAAA";Str1$[4]
940 !
950 ! *********************** SAVE BUFFER POINTERS *************************
960 ! Save the transfer buffer pointer so it can be restored after the
970 ! transfer.
980 !
990 STATUS @Buff,5;Streg
1000 !
Programming Examples
Sending Queries to the Logic Analyzer
18–21