BASIC Subprograms

Amplifying a Sine Wave

BASIC (RGBAMPL)

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).

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 Vo/(Vi * 10)

where Vo is the output amplitude and Vi is the input signal amplitude (Vo and Vi units (Vpp, Vp) must be the same). Thus,

attenuation(dB) = 20 LOG 14.15/20 = -3 dB

1!RE-STORE "RGBAMPL"

2LOADSUB ALL FROM "E46SUBS"

3!

10COM /E1446/ Base_addr,INTEGER In_ctrl,Out_imped

20!

30!SET UP E1445A

40!

50ASSIGN @Afg TO 1680 !E1445A and V/360 I/O path

60!

70!E1445A error checking

80ON INTR 16 CALL Errmsg

90ENABLE INTR 16;32

100OUTPUT @Afg;"*CLS"

110OUTPUT @Afg;"*SRE 32"

120OUTPUT @Afg;"*ESE 60"

130!

140!Reset E1445A and clear status

150OUTPUT @Afg;"*RST;*CLS;*OPC?"

160ENTER @Afg;Ready

170!

180

OUTPUT @Afg;"SOUR:FREQ1:FIX 1E3;";

!frequency

190

OUTPUT @Afg;":SOUR:FUNC:SHAP SIN;";

!function

200OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 2VPP;"; !amplitude

210OUTPUT @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

Page 143
Image 143
Agilent Technologies E1446A user manual Amplifying a Sine Wave, Basic Rgbampl, Register-Based Programming Example Programs

E1446A specifications

Agilent Technologies E1446A is a high-performance modular instrument designed for a wide range of applications in the fields of test and measurement. As part of the Agilent family of products, this device exemplifies advanced engineering and innovative technology, catering to the needs of engineers and researchers in various industries.

One of the main features of the E1446A is its dual-channel capability, allowing users to conduct simultaneous measurements, increasing efficiency and reducing test times. The instrument supports a variety of functions, including waveform generation, signal analysis, and frequency measurements. This multifunctionality makes the E1446A a versatile tool for tasks such as automatic test equipment (ATE), signal integrity analysis, and RF testing.

Equipped with state-of-the-art ADCs (Analog-to-Digital Converters) and DACs (Digital-to-Analog Converters), the E1446A ensures high precision and accuracy in measurements. With a bandwidth of up to 500 MHz, it can handle a wide range of signals, making it suitable for both low-frequency and high-frequency applications. The instrument supports various input signal types, including sine, square, and custom waveforms, expanding its applicability across diverse testing scenarios.

The E1446A also integrates advanced digital signal processing capabilities, allowing for real-time analysis and manipulation of signals. This feature is particularly useful in applications requiring immediate feedback and adjustment, such as radar and communications testing. Furthermore, the modular design facilitates easy upgrades and customization, enabling users to adapt the instrument to their ever-evolving testing requirements.

User-friendliness is another hallmark of the E1446A. It features a straightforward interface, designed for intuitive operation, which reduces the learning curve for new users. Additionally, the instrument is compatible with various programming languages, including SCPI, making it easy to integrate into existing test systems and automate testing processes.

Finally, the E1446A's compact form factor and rugged design allow for deployment in demanding environments, fulfilling the needs of both laboratory and field applications. With its blend of precision, versatility, and ease of use, the Agilent Technologies E1446A remains a vital instrument for engineers and researchers looking for dependable test and measurement solutions. Its capabilities continue to support innovation across a spectrum of technological advancements.