User`s manual

450 FOR I=1 TO 10
460 DISP “Wait until sweep completes, then press ’Continue’ to start a new sweep”
470 PAUSE
480 TRIGGER @Afg !trigger AFG
490 NEXT I
500 DISP “”
510 SUBEND
520 !
530 SUB Rst
540 Rst: !Subprogram which resets the E1445.
550 COM @Afg
560 OUTPUT @Afg;" *RST;*OPC? !reset the AFG
570 ENTER @Afg;Complete
580 SUBEND
590 !
600 SUB Errmsg
610 Errmsg: !Subprogram which displays E1445 programming errors
620 COM @Afg
630 DIM Message$[256]
640 !Read AFG status byte register and clear service request bit
650 B=SPOLL(@Afg)
660 !End of statement if error occurs among coupled commands
670 OUTPUT @Afg;""
680 OUTPUT @Afg;"ABORT" !abort output waveform
690 REPEAT
700 OUTPUT @Afg;"SYST:ERR?" !read AFG error queue
710 ENTER @Afg;Code,Message$
720 PRINT Code,Message$
730 UNTIL Code=0
740 STOP
750 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, SWP_TRIG.FRM, is in directory
“VBPROG” and the Visual C example program, SWP_TRIG.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 5 Arming and Triggering 189