User`s manual

BASIC Program Example (AFGGEN2)
This program is similar to the AFGGEN1 program on page 102 except it
selects different reference oscillator and sample sources. The differences
are as follows:
1 !RE-STORE"AFGGEN2"
2 !This program outputs a ramp arbitrary waveform using the
3 !AFG’s frequency2 generator.
160 !Set waveform parameters
170 OUTPUT @Afg;"SOUR:ROSC:SOUR INT2;";
180 OUTPUT @Afg;":TRIG:STAR:SOUR INT2;";
190 OUTPUT @Afg;":SOUR:FREQ2:RANG 40E6;";
200 OUTPUT @Afg;":SOUR:FREQ2:FIX 40E6;";
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, AFGGEN2.FRM, is in directory
“VBPROG” and the Visual C example program, AFGGEN2.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Sample Programs
The programs in this section generate various arbitrary waveforms.
All programs output waveforms at a 1 kHz repetition frequency and
5 V amplitude. These programs do not delete any waveform segments and
segment sequences stored in memory. Thus, once a program is executed, it
generates Error +1100,"Illegal segment name" and Error +1110,"Illegal
sequence name", if executed again.
Due to the similarity of all the programs, only the first program is
completely presented here. Only the differences are shown by the other
programs.
104 Generating Arbitrary Waveforms Chapter 3