User`s manual
440 ENTER @Afg;Pts
450 FOR I=1 TO (Pts-1)
460 DISP “Press ’Continue’ to advance to next frequency”
470 PAUSE
480 OUTPUT @Afg;"TRIG:SWE:IMM" !step to next frequency
490 NEXT I
500 DISP “”
510 SUBEND
520 !
530 SUB Rst
540 Rst: !Subprogram which resets the E1445.
550 COM @Afg,Pts
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,Pts
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_STEP.FRM, is in directory
“VBPROG” and the Visual C example program, SWP_STEP.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
192 Arming and Triggering Chapter 5