User`s manual

830 WRITEIO -16,Base_addr+IVAL("63",16);BINAND(Sample_hold,127)
840 SUBEND
850 !
860 SUB Rst
870 Rst: !Subprogram which resets the E1445.
880 COM @Afg,Base_addr
890 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
900 ENTER @Afg;Complete
910 SUBEND
Comments To simplify the program, SCPI commands are included to select the
reference oscillator, the divide-by-n subsystem and to start the
waveform. This requires that the only registers written to be the
Sample/Hold and ROSC/N Control Register, and the ROSC/N
Divider Registers. This program executes as intended when the
SCPI commands in subprogram Output_function are executed before
the registers are written to.
The subprogram Output_function sets the initial reference oscillator
frequency to 40 MHz. If a different reference oscillator frequency is
used (that is, 42.94967296 MHz or an externally supplied oscillator),
specify that frequency when the Divide_by_n subprogram is called
(line 200).
Standard function sine waves are not available with the divide-by-n
subsystem (
[SOURce:]FREQuency2). Frequency doubling should
not be used with the divide-by-n subsystem.
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, FREQ2REG.FRM, is in directory
VBPROG” and the Visual C example program, FREQ2REG.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
494 Register-Based Programming Appendix C