User`s manual

Generating a
Sin(X)/X Waveform
The SIN_X program generates a Sin(X)/X waveform using 4096 segments
or points.
BASIC Program Example (SIN_X)
1 !RE-STORE “SIN_X”
2 !This program generates the arbitrary waveform Sin(x)/x.
3 !
10 !Assign I/O path between the computer and E1445A.
20 ASSIGN @Afg TO 70910
30 COM @Afg
40 !
50 !Set up error checking
60 ON INTR 7 CALL Errmsg
70 ENABLE INTR 7;2
80 OUTPUT @Afg;"*CLS"
90 OUTPUT @Afg;"*SRE 32"
100 OUTPUT @Afg;"*ESE 60"
110 !
120 !Call the subprogram which resets and clears the AFG.
130 CALL Rst
140 !Set the signal frequency, function, and amplitude.
150 OUTPUT @Afg;"SOUR:FREQ1:FIX 4.096E6;";
160 OUTPUT @Afg;":SOUR:FUNC:SHAP USER;";
170 OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 1.1V"
180 !Call the subprogram which defines the Sin(x)/x waveform and
190 !output sequence.
200 CALL Sinx_def
210 !Select the output sequence and start the waveform.
220 OUTPUT @Afg;"SOUR:FUNC:USER SIN_X_OUT"
230 OUTPUT @Afg;"INIT:IMM"
240 !
250 WAIT .1 !allow interrupt to be serviced
260 OFF INTR 7
270 END
Continued on Next Page
Chapter 3 Generating Arbitrary Waveforms 105