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