Agilent Technologies 1670G Printer Accessories User Manual


 
340 !
350 ! ******************** TRANSER THE SETUP ********************************
360 ! Transfer the setup from the logic analyzer to the buffer.
370 !
380 ! ********** RE-INITIALIZE TRANSFER BUFFER POINTERS ****************
390 ASSIGN @Buff TO BUFFER [Numbytes]
400 CONTROL @Buff,3;1
410 CONTROL @Buff,4;0
420 TRANSFER @Comm TO @Buff;COUNT Numbytes,WAIT
430 !
440 ! Get termination character
450 ENTER @Comm;Term$
460 !
470 PRINT "**** GOT THE SETUP ****"
480 PRINT "Press Continue to continue the program."
490 PAUSE
500 ! ********************* SEND THE SETUP **********************************
510 ! Make sure buffer is not empty.
520 !
530 IF Numbytes=0 THEN
540 PRINT "BUFFER IS EMPTY"
550 PAUSE
560 END IF
570 !
580 ! ********************* SEND THE SETUP COMMAND **************************
590 ! Send the Setup command
600 !
610 OUTPUT @Comm USING "#,16A";":SYSTEM:SETUP #8"
620 PRINT "SYSTEM:SETUP command has been sent"
630 PRINT "Press Continue to continue program."
640 PAUSE
650 !
660 ! ********************* SEND THE BLOCK SETUP ****************************
670 ! Send the block length to the Agilent 1670G in the proper
680 ! format.
690 !
700 OUTPUT @Comm USING "#,8A";Numbytes$
710 !
720 ! *********************** SAVE BUFFER POINTERS *************************
730 ! Save the transfer buffer pointer so it can be restored after the
740 ! transfer.
750 !
760 STATUS @Buff,5;Streg
770 !
Programming Examples
Transferring the Logic Analyzer Configuration
43–15