User`s manual
300 SUB Rst
310 Rst: !Subprogram which resets the E1445.
320 COM @Afg
330 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
340 ENTER @Afg;Complete
350 SUBEND
360 !
370 SUB Errmsg
380 Errmsg: !Subprogram which displays E1445 programming errors
390 COM @Afg
400 DIM Message$[256]
410 !Read AFG status byte register and clear service request bit
420 B=SPOLL(@Afg)
430 !End of statement if error occurs among coupled commands
440 OUTPUT @Afg;""
450 OUTPUT @Afg;"ABORT" !abort output waveform
460 REPEAT
470 OUTPUT @Afg;"SYST:ERR?" !read AFG error queue
480 ENTER @Afg;Code,Message$
490 PRINT Code,Message$
500 UNTIL Code=0
510 STOP
520 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, OUTPLOAD.FRM, is in directory
“VBPROG” and the Visual C example program, OUTPLOAD.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 2 Generating Standard Waveforms 71