170
OUTPUT @Afg;“:SOUR:VOLT:LEV:IMM:AMPL 5.1V”
!scale
amplitude
180
!
190
!Call subprogram which defines waveform segments A and B.
200
CALL Sine_tri_wave
210
!
220
!Select output sequence and initiate waveform
230
OUTPUT @Afg;“SOUR:FUNC:USER HOP_AB”
240
OUTPUT @Afg;“INIT:IMM”
!wait-for-arm state
250
!
260
WAIT .1
!allow interrupt to be serviced
270
OFF INTR 8
280
END
290
!
300
SUB Sine_tri_wave
310 Sine_tri_wave:
!Subprogram which defines
waveforms
320
COM @Afg,Waveform1(*),Waveform2(*)
350
FOR I=1 TO 4096
360
Waveform1(I)=5*(SIN(2*PI*(I/4096)))
370
NEXT I
380
!
390
OUTPUT @Afg;“SOUR:LIST:SEGM:SEL A”
!Select segment name
400
OUTPUT @Afg;“ SOUR:LIST:SEGM:VOLT”;Waveform1(*)
!load waveform points
410
!
420
FOR I=1 TO 2047
430
Waveform2(I)=I*.0024414
440
NEXT I
450
FOR I=2048 TO 4096
460
Waveform2(I)=(4096-I)*.0024414
470
NEXT I
480
!
490
OUTPUT @Afg;“SOUR:LIST:SEGM:SEL B”
!Select segment name
500
OUTPUT @Afg;“ SOUR:LIST:SEGM:VOLT”;Waveform2(*)
!load waveform points
510
SUBEND
520
!
530
SUB Rst
•
•
600
SUB Errmsg
•
•
71 Generating Arbitrary Waveforms with the HP E1340A
Chapter 3
Содержание 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 ...