User`s manual

300 Spike_def: !Compute waveform (sine wave with spike) and define segment.
310 COM @Afg
320 DIM Waveform(1:4096)
330 FOR I=1 TO 4096
340 Waveform(I)=SIN(2*PI*(I/4096))
350 NEXT I
360 Width=50
370 FOR J=1 TO Width/2
380 Waveform(J+1024)=Waveform(J+1024)+J*.04
390 NEXT J
400 FOR J=1 TO Width/2
410 Waveform(J+1024+Width/2)=Waveform(J+1024+Width/2)+1-(J*.04)
420 NEXT J
430 OUTPUT @Afg;"SOUR:LIST1:SEGM:SEL SPIKES" !select segment to be defined
440 OUTPUT @Afg;"SOUR:LIST1:SEGM:DEF 4096" !reserve memory for segment
450 OUTPUT @Afg;"SOUR:LIST1:SEGM:VOLT";Waveform(*) !load waveform points
460 !
470 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL SPIKES_OUT" !Define sequence name
480 OUTPUT @Afg;"SOUR:LIST1:SSEQ:DEF 1" !Define sequence size
490 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEQ SPIKES" !Define segment execution order
500 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, SPIKES.FRM, is in directory
“VBPROG” and the Visual C example program, SPIKES.C, is in directory
“VCPROG” on the CD that came with your Agilent E1445A.
110 Generating Arbitrary Waveforms Chapter 3