370
SUB Rst
380 Rst:
!Subprogram which resets the E1445.
390
COM @Afg
400
OUTPUT @Afg;"*RST;*OPC?"
!reset the AFG
410
ENTER @Afg;Complete
420
SUBEND
430
!
440
SUB Fsk_info
450 Fsk_info:
!Subprogram which queries FSK frequencies and source
460
COM @Afg
470
DIM Frequencies$[80]
480
OUTPUT @Afg;"SOUR:FREQ1:FSK?"
!query FSK frequencies
490
ENTER @Afg;Frequencies$
500
OUTPUT @Afg;"SOUR:FREQ:FSK:SOUR?"
!query FSK source
510
ENTER @Afg;Source$
520
PRINT “FSK frequencies are: ”;Frequencies$
530
PRINT “FSK control source is: ”;Source$
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$
690
UNTIL Code=0
700
STOP
710
SUBEND
Upon completion, the program displays:
FSK
frequencies are:
+5.000006,+1.000007
FSK
control
source
is:
EXT
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, FSK1.FRM, is in directory
“VBPROG” and the Visual C example program, FSK1.C, is in directory
“VCPROG” on the CD that came with your Agilent E1445A.
Chapter 4
Sweeping and Frequency-Shift Keying 149
Содержание E1445A
Страница 2: ......
Страница 14: ...Notes 12 Agilent E1445A User s Manual Contents...
Страница 18: ...Notes 16 Agilent E1445A Arbitrary Function Generator User s Manual...
Страница 19: ...Notes Agilent E1445A Arbitrary Function Generator User s Manual 17...
Страница 20: ...Notes 18 Agilent E1445A Arbitrary Function Generator User s Manual...
Страница 54: ...Notes 52 Getting Started Chapter 1...
Страница 84: ...Notes 82 Generating Standard Waveforms Chapter 2...
Страница 204: ...Notes 202 Arming and Triggering Chapter 5...
Страница 432: ...Figure 9 1 E1445A Status Groups and Associated Registers 430 AFG Status Chapter 9...
Страница 446: ...Notes 444 AFG Status Chapter 9...
Страница 464: ...Notes 462 Agilent E1445A Specifications Appendix A...
Страница 534: ...Notes 532 Agilent E1445A User s Manual Index...