380
FOR J=1 TO Width/2
390
Waveform(J+1024)=Waveform(J+1024)+J*.04
400
NEXT J
410
FOR J=1 TO Width/2
420
Waveform(J+1024+Width/2)=Waveform(J+1024+Width/2)
+1-(J*.04)
430
NEXT J
440
!
450
OUTPUT @Afg;“SOUR:LIST:SEGM:SEL A”
!select segment name
460
OUTPUT @Afg;“ SOUR:LIST:SEGM:VOLT”;Waveform(*)
!load
waveform points
470
SUBEND
C and QuickBASIC
Program Versions
The C example program, SPIKES.C, is in directory “ CPROG” and the
QuickBASIC example program, SPIKES.BAS, is in directory “ QBPROG”
on the C and QuickBASIC example disk (part number E1340-10034).
Generating a
Half-Rectified Sine
Wave
This program generates a Half-Rectified Sine Wave using 4096 segments or
points.
Chapter 3
Generating Arbitrary Waveforms with the HP E1340A 80
Summary of Contents for E1340A
Page 12: ...Notes 12 HP E1340A Arbitrary Function Generator Module User s Manual ...
Page 14: ...14 HP E1340A Arbitrary Function Generator Module User s Manual ...
Page 42: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 42 ...
Page 54: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 54 ...
Page 58: ...Chapter 3 Generating Arbitrary Waveforms with the HP E1340A 58 ...
Page 84: ...Chapter 4 HP E1340A Sweeping and Frequency Shift Keying 84 ...
Page 130: ...Chapter 6 HP E1340A High Speed Operation 130 ...
Page 202: ...202 HP E1340A SCPI Conformance Information Chapter 7 ...
Page 218: ...218 HP E1340A Specifications Appendix A ...
Page 284: ...284 HP E1340A Register Based Programming Appendix C ...
Page 295: ...Index HP E1340A Arbitrary Function Generator User s Manual 295 ...