User`s manual
380 IF T>=2047 THEN
390 Waveform(T)=1*(1-EXP(-2048/Rc))-1*(1-EXP(-(T-2047)/Rc))
400 END IF
410 NEXT T
420 OUTPUT @Afg;"SOUR:LIST1:SEGM:SEL CHARGE" !select segment to be defined
430 OUTPUT @Afg;"SOUR:LIST1:SEGM:DEF 4096" !reserve memory for segment
440 OUTPUT @Afg;"SOUR:LIST1:SEGM:VOLT";Waveform(*) !load waveform points
450 !
460 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL CHARGE_OUT" !Define sequence name
470 OUTPUT @Afg;"SOUR:LIST1:SSEQ:DEF 1" !Define sequence size
480 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEQ CHARGE" !Set execution order
490 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, CHARGE.FRM, is in directory
“VBPROG” and the Visual C example program, CHARGE.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Generating a Sine
Wave with Spikes
The SPIKES program generates a sine wave with spikes using 4096 segments
or points.
BASIC Program Example (SPIKES)
This program is similar to the “SIN_X” BASIC program on page 105, with
the following differences:
1 !RE-STORE “SPIKES”
2 !This program generates a spiked sine wave as an arbitrary waveform.
180 !Call the subprogram which defines a sine wave with a spike and
190 !the output sequence.
200 CALL Spike_def
210 !Select the output sequence and start the waveform.
220 OUTPUT @Afg;"SOUR:FUNC:USER SPIKES_OUT"
230 OUTPUT @Afg;"INIT:IMM"
290 SUB Spike_def
Continued on Next Page
Chapter 3 Generating Arbitrary Waveforms 109