450
OUTPUT @Afg;"SOUR:FREQ1:CENT?"
460
ENTER @Afg;Center$
470
OUTPUT @Afg;"SOUR:FREQ1:SPAN?"
480
ENTER @Afg;Span$
490
OUTPUT @Afg;"SOUR:FREQ1:STAR?"
500
ENTER @Afg;Start$
510
OUTPUT @Afg;"SOUR:FREQ1:STOP?"
520
ENTER @Afg;Stop$
530
DISP "START = ";Start$,"STOP = ";Stop$, "CENTER = ";Center$,"SPAN = ";Span$
540
SUBEND
550
!
560
SUB Errmsg
570 Errmsg: !Subprogram which displays E1445 programming errors
580
COM @Afg
590
DIM Message$[256]
600
!Read AFG status byte register and clear service request bit
610
B=SPOLL(@Afg)
620
!End of statement if error occurs among coupled commands
630
OUTPUT @Afg;""
640
OUTPUT @Afg;"ABORT"
!abort output waveform
650
REPEAT
660
OUTPUT @Afg;"SYST:ERR?"
!read AFG error queue
670
ENTER @Afg;Code,Message$
680
PRINT Code,Message$
790
UNTIL Code=0
700
STOP
710
SUBEND
The start, stop, center, and span values returned are:
START =
+0.000000
STOP =
+1.000006
CENTER =
+5.000005
SPAN =
+1.000006
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, SMPLSWP1.FRM, is in directory
“VBPROG” and the Visual C example program, SMPLSWP1.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 4
Sweeping and Frequency-Shift Keying 123
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...