240 WAIT .1
250OFF INTR 16
260!
270! BEGIN E1446A CONFIGURATION
280!
290!Declare and initialize program variables
300!
310REAL In1_atten,In1_imped,In2_atten,In2_imped !input variables
320 | REAL Out1_atten,Out1_imped,Out1_state | !main output variables |
330 | REAL Out2_imped,Out3_imped | !diff out variables |
340 | REAL Offset | !DC offset variable |
350 | ! |
|
360 | DATA 3.,50.,0.,50. |
|
370READ In1_atten,In1_imped,In2_atten,In2_imped !input atten and imp
380!
390DATA 0.,50.,1 !main output attenuation, impedance, and state
400READ Out1_atten,Out1_imped,Out1_state
410!
420DATA 50.,50. !differential output impedances
430READ Out2_imped,Out3_imped
440!
450Offset= 0. !DC offset
460!
470!Set E1446A base address and initialize COM variables
480Set_addr(88)
490!
500!Set up E1446A
510Setup_e1446(In1_atten,In1_imped,In2_atten,In2_imped,Out1_atten,Out1_imped, Out1_state,Out2_imped,Out3_imped,Offset)
520!
530OUTPUT @Afg;"INIT:IMM" !E1445A
540END
550!
Setting the
(amplifier) Input
Impedance
This program sets the E1446A’s input impedance to match the output impedance of the E1445A. The signal supplied by the E1445A is a 1 Vpp, 2 MHz square wave. The signal is amplified to 6.3 Vpp. Again, when the intended output amplitude and the input amplitude are known, the amount of attenuation (0 - 31 dB attenuator) is determined by:
attenuation(dB) = 20 LOG Vo/(Vi * 10)
Example Programs |
|