User`s manual

Generating
Sine Waves
From the power-on/reset configuration you can output a 0.16187 Vp,
10 kHz sine wave by setting the AFG to the wait-for-arm state with the
INITiate:IMMediate command. This is done with the RSTSINE program.
BASIC Program Example (RSTSINE)
1 !RE-STORE"RSTSINE"
2 !This program outputs a sine wave based on the reset conditions
3 !of the AFG.
4 !
10 !Assign an I/O path between the computer and AFG.
20 ASSIGN @Afg TO 70910
30 COM @Afg
40 !
50 !Reset the AFG
60 CALL Rst
70 OUTPUT @Afg;"INIT:IMM" !output sine wave using reset conditions
80 END
90 !
100 SUB Rst
110 Rst: !subprogram which resets the AFG.
120 COM @Afg
130 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
140 ENTER @Afg;Complete
150 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, RSTSINE.FRM, is in directory
“VBPROG” and the Visual C/C++ example program, RSTSINE.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 1 Getting Started 51