200
OUTPUT @Afg;“:SOUR:VOLT:LEV:IMM:AMPL 5V”
!amplitude
210
OUTPUT @Afg;“INIT:IMM”
!wait-for-arm state
220
!
230
!Call subprogram which queries sweep parameters
240
CALL Query
250
!
260
WAIT .1
!allow interrupt to be serviced
270
OFF INTR 8
280
END
290
!
300
SUB Query
310 Query: !Subprogram which queries sweep parameters
320
COM @Afg
330
OUTPUT @Afg;“SOUR:FREQ:STAR?”
340
ENTER @Afg;Sweep1$
350
OUTPUT @Afg;“SOUR:FREQ:STOP?”
360
ENTER @Afg;Sweep2$
370
OUTPUT @Afg;“SOUR:FREQ:CENT?”
380
ENTER @Afg;Sweep3$
390
OUTPUT @Afg;“SOUR:FREQ:SPAN?”
400
ENTER @Afg;Sweep4$
410
PRINT “START = ”;Sweep1$,“STOP = ”;Sweep2$
420
430
PRINT “CENTER = ”;Sweep3$,“SPAN = ”;Sweep4$
440
SUBEND
450
!
460
SUB Rst
•
•
530
SUB Errmsg
•
•
The start, stop, center, and span values returned are:
START = +1.000003
STOP = +2.100004
CENTER = +1.100004
SPAN = +2.000004
C and QuickBASIC
Programs
The C program SMPLSWP2.C is in directory “CPROG” , and the
QuickBASIC program SMPLSWP2.BAS is in directory “QBPROG” on
the example program disk HP P/N E1340-10036.
89 HP E1340A Sweeping and Frequency-Shift Keying
Chapter 4
Содержание E1340A
Страница 12: ...Notes 12 HP E1340A Arbitrary Function Generator Module User s Manual ...
Страница 14: ...14 HP E1340A Arbitrary Function Generator Module User s Manual ...
Страница 42: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 42 ...
Страница 54: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 54 ...
Страница 57: ...Figure 3 1 Generating Arbitrary Waveforms 57 Generating Arbitrary Waveforms with the HP E1340A Chapter 3 ...
Страница 58: ...Chapter 3 Generating Arbitrary Waveforms with the HP E1340A 58 ...
Страница 84: ...Chapter 4 HP E1340A Sweeping and Frequency Shift Keying 84 ...
Страница 130: ...Chapter 6 HP E1340A High Speed Operation 130 ...
Страница 202: ...202 HP E1340A SCPI Conformance Information Chapter 7 ...
Страница 204: ...Figure 8 1 HP E1340A Status Groups and Associated Registers Chapter 8 HP E1340A AFG Status 204 ...
Страница 218: ...218 HP E1340A Specifications Appendix A ...
Страница 284: ...284 HP E1340A Register Based Programming Appendix C ...
Страница 295: ...Index HP E1340A Arbitrary Function Generator User s Manual 295 ...