User`s manual
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, SIN_R.FRM, is in directory
“VBPROG” and the Visual C example program, SIN_R.C, is in directory
“VCPROG” on the CD that came with your Agilent E1445A.
Generating Noise The NOISE program generates pseudo-noise.
BASIC Program Example (NOISE)
This program is similar to the “SIN_X” BASIC program on page 105, with
the following differences:
1 !RE-STORE “NOISE”
2 !This program outputs a pseudo random noise waveform as an
3 !arbitrary waveform.
180 !Call the subprogram which defines the noise signal and
190 !output sequence.
200 CALL Noise_def
210 !Select the output sequence and start the waveform.
220 OUTPUT @Afg;"SOUR:FUNC:USER NOISE_OUT"
230 OUTPUT @Afg;"INIT:IMM"
280 SUB Noise_def
290 Noise_def: !Subprogram which defines the noise signal and output
300 !sequence.
310 COM @Afg
320 DIM Waveform(1:4096)
330 FOR I=1 TO 4096
340 Waveform(I)=2.*RND-1
350 NEXT I
360 OUTPUT @Afg;"LIST:SEGM:SEL NOISE" !select segment to be defined
370 OUTPUT @Afg;" LIST:SEGM:DEF 4096" !reserve memory for segment
380 OUTPUT @Afg;" LIST:SEGM:VOLT";Waveform(*) !load waveform points
390 !
400 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL NOISE_OUT" !define sequence
410 OUTPUT @Afg;"SOUR:LIST1:SSEQ:DEF 1" !number segments in sequence
420 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEQ NOISE" !segment order
430 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, NOISE.FRM, is in directory
“VBPROG” and the Visual C example program, NOISE.C, is in directory
“VCPROG” on the CD that came with your Agilent E1445A.
112 Generating Arbitrary Waveforms Chapter 3