450
OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL RAMP_OUT"
460
OUTPUT @Afg;" SOUR:LIST1:SSEQ:DEF 1"
470
OUTPUT @Afg;" SOUR:LIST1:SSEQ:SEQ RAMP"
480
SUBEND
490
!
500
SUB Rst
510 Rst:
!Subprogram which resets the E1445.
520
COM @Afg
530
OUTPUT @Afg;"*RST;*OPC?"
!reset the AFG
540
ENTER @Afg;Complete
550
SUBEND
560
!
570
SUB Wf_del
580 Wf_del: !Subprogram which deletes all sequences and segments.
590
COM @Afg
600
OUTPUT @Afg;"FUNC:USER NONE"
!select no sequences
610
OUTPUT @Afg;"LIST:SSEQ:DEL:ALL"
!Clear sequence memory
620
OUTPUT @Afg;"LIST:SEGM:DEL:ALL"
!Clear segment memory
630
SUBEND
640
!
650
SUB Errmsg
660 Errmsg: !Subprogram which displays E1445 programming errors
670
COM @Afg
680
DIM Message$[256]
690
!Read AFG status byte register and clear service request bit
700
B=SPOLL(@Afg)
710
!End of statement if error occurs among coupled commands
720
OUTPUT @Afg;""
730
OUTPUT @Afg;"ABORT"
!abort output waveform
740
REPEAT
750
OUTPUT @Afg;"SYST:ERR?"
!read AFG error queue
760
ENTER @Afg;Code,Message$
770
PRINT Code,Message$
780
UNTIL Code=0
790
STOP
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, AFGGEN1.FRM, is in directory
“VBPROG” and the Visual C example program, AFGGEN1.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 3
Generating Arbitrary Waveforms 103
Summary of Contents for E1445A
Page 2: ......
Page 14: ...Notes 12 Agilent E1445A User s Manual Contents...
Page 18: ...Notes 16 Agilent E1445A Arbitrary Function Generator User s Manual...
Page 19: ...Notes Agilent E1445A Arbitrary Function Generator User s Manual 17...
Page 20: ...Notes 18 Agilent E1445A Arbitrary Function Generator User s Manual...
Page 54: ...Notes 52 Getting Started Chapter 1...
Page 84: ...Notes 82 Generating Standard Waveforms Chapter 2...
Page 204: ...Notes 202 Arming and Triggering Chapter 5...
Page 432: ...Figure 9 1 E1445A Status Groups and Associated Registers 430 AFG Status Chapter 9...
Page 446: ...Notes 444 AFG Status Chapter 9...
Page 464: ...Notes 462 Agilent E1445A Specifications Appendix A...
Page 534: ...Notes 532 Agilent E1445A User s Manual Index...