Agilent Technologies E1446A Car Amplifier User Manual


 
BASIC Subprograms The subprograms used by each register-based program are stored/saved
in a separate file (file name ’E46SUBS’). These subprograms are listed
after the last example (Summing Two Signals).
Amplifying a Sine
Wave
This program uses the E1446A to amplify a 2 Vpp E1445A AFG signal
to 14.15 Vpp. Since the intended output amplitude and the input
amplitude are known, the amount of attenuation (0 - 31 dB attenuator)
is determined as:
attenuation
(dB)
= 20 LOG V
o
/(V
i
* 10)
where V
o
is the output amplitude and V
i
is the input signal amplitude
(V
o
and V
i
units (Vpp, Vp) must be the same). Thus,
attenuation
(dB)
= 20 LOG 14.15/20 = -3 dB
BASIC (RGBAMPL)
1 !RE-STORE "RGBAMPL"
2 LOADSUB ALL FROM "E46SUBS"
3 !
10 COM /E1446/ Base_addr,INTEGER In_ctrl,Out_imped
20 !
30 !SET UP E1445A
40 !
50 ASSIGN @Afg TO 1680 !E1445A and V/360 I/O path
60 !
70 !E1445A error checking
80 ON INTR 16 CALL Errmsg
90 ENABLE INTR 16;32
100 OUTPUT @Afg;"*CLS"
110 OUTPUT @Afg;"*SRE 32"
120 OUTPUT @Afg;"*ESE 60"
130 !
140 !Reset E1445A and clear status
150 OUTPUT @Afg;"*RST;*CLS;*OPC?"
160 ENTER @Afg;Ready
170 !
180 OUTPUT @Afg;"SOUR:FREQ1:FIX 1E3;"; !frequency
190 OUTPUT @Afg;":SOUR:FUNC:SHAP SIN;"; !function
200 OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 2VPP;"; !amplitude
210 OUTPUT @Afg;":OUTP:LOAD:AUTO ON;"; !couple load to impedance
220 OUTPUT @Afg;":OUTP:IMP 50" !output impedance
230 !
Continued on Next Page
C-18 Register-Based Programming Example Programs