HOME

TheInfoList



OR:

In
electrical engineering Electrical engineering is an engineering discipline concerned with the study, design, and application of equipment, devices, and systems which use electricity, electronics, and electromagnetism. It emerged as an identifiable occupation in the l ...
, a function generator is usually a piece of electronic test equipment or
software Software is a set of computer programs and associated documentation and data. This is in contrast to hardware, from which the system is built and which actually performs the work. At the lowest programming level, executable code consist ...
used to generate different types of electrical
waveform In electronics, acoustics, and related fields, the waveform of a signal is the shape of its graph as a function of time, independent of its time and magnitude scales and of any displacement in time.David Crecraft, David Gorham, ''Electro ...
s over a wide range of
frequencies Frequency is the number of occurrences of a repeating event per unit of time. It is also occasionally referred to as ''temporal frequency'' for clarity, and is distinct from ''angular frequency''. Frequency is measured in hertz (Hz) which is e ...
. Some of the most common waveforms produced by the function generator are the
sine wave A sine wave, sinusoidal wave, or just sinusoid is a mathematical curve defined in terms of the '' sine'' trigonometric function, of which it is the graph. It is a type of continuous wave and also a smooth periodic function. It occurs often in ...
,
square wave A square wave is a non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same duration at minimum and maximum. In an ideal square wave, the transitions b ...
, triangular wave and sawtooth shapes. These waveforms can be either repetitive or single-shot (which requires an internal or external trigger source).cnx.org - Using a Basic Function Generator
2005-08-21
Another feature included on many function generators is the ability to add a
DC offset In signal processing, when describing a periodic function in the time domain, the DC bias, DC component, DC offset, or DC coefficient is the mean amplitude of the waveform. If the mean amplitude is zero, there is no DC bias. A waveform with n ...
.
Integrated circuit An integrated circuit or monolithic integrated circuit (also referred to as an IC, a chip, or a microchip) is a set of electronic circuits on one small flat piece (or "chip") of semiconductor material, usually silicon. Large numbers of tiny ...
s used to generate waveforms may also be described as function generator ICs. Although function generators cover both
audio Audio most commonly refers to sound, as it is transmitted in signal form. It may also refer to: Sound *Audio signal, an electrical representation of sound *Audio frequency, a frequency in the audio spectrum * Digital audio, representation of sou ...
and radio frequencies, they are usually not suitable for applications that need low
distortion In signal processing, distortion is the alteration of the original shape (or other characteristic) of a signal. In communications and electronics it means the alteration of the waveform of an information-bearing signal, such as an audio signa ...
or stable frequency signals. When those traits are required, other signal generators would be more appropriate. Some function generators can be phase-locked to an external signal source (which may be a frequency reference) or another function generator. Function generators are used in the development, test and repair of electronic equipment. For example, they may be used as a signal source to test
amplifier An amplifier, electronic amplifier or (informally) amp is an electronic device that can increase the magnitude of a signal (a time-varying voltage or current). It may increase the power significantly, or its main effect may be to boost t ...
s or to introduce an error signal into a control loop. Function generators are primarily used for working with analog circuits, related
pulse generator A pulse generator is either an electronic circuit ''or'' a piece of electronic test equipment used to generate rectangular pulses. Pulse generators are used primarily for working with digital circuits; related function generators are used pri ...
s are primarily used for working with
digital circuit In theoretical computer science, a circuit is a model of computation in which input values proceed through a sequence of gates, each of which computes a function. Circuits of this kind provide a generalization of Boolean circuits and a mathemati ...
s.


Electronic instruments


Principles of Operation

Simple function generators usually generate triangular waveform whose frequency can be controlled smoothly as well as in steps. This triangular wave is used as the basis for all of its other outputs. The triangular wave is generated by repeatedly charging and discharging a
capacitor A capacitor is a device that stores electrical energy in an electric field by virtue of accumulating electric charges on two close surfaces insulated from each other. It is a passive electronic component with two terminals. The effect of ...
from a constant current source. This produces a
linear Linearity is the property of a mathematical relationship ('' function'') that can be graphically represented as a straight line. Linearity is closely related to '' proportionality''. Examples in physics include rectilinear motion, the linear ...
ly ascending and descending voltage ramp. As the output voltage reaches upper or lower limits, the charging or discharging is reversed using a comparator, producing the linear triangle wave. By varying the current and the size of the capacitor, different
frequencies Frequency is the number of occurrences of a repeating event per unit of time. It is also occasionally referred to as ''temporal frequency'' for clarity, and is distinct from ''angular frequency''. Frequency is measured in hertz (Hz) which is e ...
may be obtained.
Sawtooth wave The sawtooth wave (or saw wave) is a kind of non-sinusoidal waveform. It is so named based on its resemblance to the teeth of a plain-toothed saw with a zero rake angle. A single sawtooth, or an intermittently triggered sawtooth, is called ...
s can be produced by charging the capacitor slowly with low current, but using a diode over the current source to discharge quickly - the polarity of the diode changes the polarity of the resulting sawtooth, i.e. slow rise and fast fall, or fast rise and slow fall. A 50%
duty cycle A duty cycle or power cycle is the fraction of one period in which a signal or system is active. Duty cycle is commonly expressed as a percentage or a ratio. A period is the time it takes for a signal to complete an on-and-off cycle. As a form ...
square wave A square wave is a non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same duration at minimum and maximum. In an ideal square wave, the transitions b ...
is easily obtained by noting whether the capacitor is being charged or discharged, which is reflected in the current switching comparator output. Other duty cycles (theoretically from 0% to 100%) can be obtained by using a comparator and the sawtooth or triangle signal. Most function generators also contain a non-linear
diode A diode is a two-terminal electronic component that conducts current primarily in one direction (asymmetric conductance); it has low (ideally zero) resistance in one direction, and high (ideally infinite) resistance in the other. A diod ...
shaping circuit that can convert the triangle wave into a reasonably accurate
sine wave A sine wave, sinusoidal wave, or just sinusoid is a mathematical curve defined in terms of the '' sine'' trigonometric function, of which it is the graph. It is a type of continuous wave and also a smooth periodic function. It occurs often in ...
by rounding off the corners of the triangle wave in a process similar to clipping in audio systems. A walking ring counter, also called a
Johnson counter A ring counter is a type of counter composed of flip-flops connected into a shift register, with the output of the last flip-flop fed to the input of the first, making a "circular" or "ring" structure. There are two types of ring counters: * A ...
, and a (linear) resistor-only shaping circuit is an alternative way to produce an approximation of a sine wave. This is perhaps the simplest numerically-controlled oscillator. Two such walking ring counters are perhaps the simplest way to generate the continuous-phase frequency-shift keying used in
dual-tone multi-frequency signaling Dual-tone multi-frequency signaling (DTMF) is a telecommunication signaling system using the voice-frequency band over telephone lines between telephone equipment and other communications devices and switching centers. DTMF was first developed ...
and early
modem A modulator-demodulator or modem is a computer hardware device that converts data from a digital format into a format suitable for an analog transmission medium such as telephone or radio. A modem transmits data by modulating one or more c ...
tones. A typical function generator can provide frequencies up to 20 MHz. RF generators for higher frequencies are not function generators in the strict sense since they typically produce pure or modulated sine signals only. Function generators, like most signal generators, may also contain an attenuator, various means of
modulating In music, modulation is the change from one tonality ( tonic, or tonal center) to another. This may or may not be accompanied by a change in key signature (a key change). Modulations articulate or create the structure or form of many pieces, a ...
the output waveform, and often the ability to automatically and repetitively "sweep" the frequency of the output waveform (by means of a voltage-controlled oscillator) between two operator-determined limits. This capability makes it very easy to evaluate the frequency response of a given
electronic circuit An electronic circuit is composed of individual electronic components, such as resistors, transistors, capacitors, inductors and diodes, connected by conductive wires or traces through which electric current can flow. It is a type of electric ...
. Some function generators can also generate
white White is the lightest color and is achromatic (having no hue). It is the color of objects such as snow, chalk, and milk, and is the opposite of black. White objects fully reflect and scatter all the visible wavelengths of light. White ...
or
pink noise Pink noise or noise is a signal or process with a frequency spectrum such that the power spectral density (power per frequency interval) is inversely proportional to the frequency of the signal. In pink noise, each octave interval (halving ...
. More advanced function generators are called arbitrary waveform generators (AWG). They use direct digital synthesis (DDS) techniques to generate any waveform that can be described by a table of amplitudes and time steps.


Specifications

Typical specifications for a general-purpose function generator are: * Produces sine, square, triangular, sawtooth (ramp), and pulse output. Arbitrary waveform generators can produce waves of any shape. * It can generate a wide range of frequencies. For example, the Tektronix FG 502 (ca 1974) covers 0.1 Hz to 11 MHz., pp=1-7–1-8 * Frequency stability of 0.1 percent per hour for analog generators or for a digital generator. * Maximum sinewave
distortion In signal processing, distortion is the alteration of the original shape (or other characteristic) of a signal. In communications and electronics it means the alteration of the waveform of an information-bearing signal, such as an audio signa ...
of about 1% (accuracy of diode shaping network) for analog generators. Arbitrary waveform generators may have distortion less than below and less than above * Some function generators can be phase locked to an external signal source, which may be a frequency reference or another function generator. * Amplitude modulation (AM), frequency modulation (FM), or phase modulation (PM) may be supported. * Output amplitude up to peak-to-peak. * Amplitude can be modified, usually by a calibrated attenuator with decade steps and continuous adjustment within each decade. * Some generators provide a DC offset voltage, e.g. adjustable between -5V to +5V. * An output impedance of .


Software

A completely different approach to function generation is to use
software Software is a set of computer programs and associated documentation and data. This is in contrast to hardware, from which the system is built and which actually performs the work. At the lowest programming level, executable code consist ...
instructions to generate a waveform, with provision for output. For example, a general-purpose digital computer can be used to generate the waveform; if frequency range and amplitude are acceptable, the sound card fitted to most computers can be used to output the generated wave.


Circuit elements


Waveform generator

An electronic circuit element used for generating waveforms within other apparatus that can be used in communications and instrumentation circuits, and also in a function generator instrument. Examples are the Exar XR2206 and , which can generate sine, square, triangle, ramp, and pulse waveforms at a voltage-controllable frequency.


Function generator

An electronic circuit element that provides an output proportional to some mathematical function (such as the square root) of its input; such devices are used in feedback control systems and in analog computers. Examples are the Raytheon QK329 square-law tube and the Intersil ICL8048 Log/Antilog Amplifier.


Mechanical function generators

Mechanical function generators are linkages, cam-follower mechanisms or
non-circular gear A non-circular gear (NCG) is a special gear design with special characteristics and purpose. While a regular gear is optimized to transmit torque to another engaged member with minimum noise and wear and with maximum efficiency, a non-circular ge ...
s, designed to reproduce different types of functions, either periodic (like sine or cosine functions), or single-shot (logarithm, parabolic, tangent functions etc.). Measurement instruments like pressure gauges, altimeters and barometers include linkage-type function generators as linearization means. Before the advent of digital computers, mechanical function generators were used in the construction of gun fire control systems, and
mechanical calculator A mechanical calculator, or calculating machine, is a mechanical device used to perform the basic operations of arithmetic automatically, or (historically) a simulation such as an analog computer or a slide rule. Most mechanical calculators w ...
s. File:Func Geen Log(u).gif, Four-bar function generator of the function Log(u) for 1 < u < 10. File:RRRT Func Geen Log(u).gif, Rocker-slider function generator of the function Log(u) for 1 < u < 10. File:TRRR Func Geen Tan(u).gif, Slider-rocker function generator of the function Tan(u) for 0 < u < 45°.


See also

* Digital Pattern Generator *
Electronic musical instrument An electronic musical instrument or electrophone is a musical instrument that produces sound using electronic circuitry. Such an instrument sounds by outputting an electrical, electronic or digital audio signal that ultimately is plugged into ...
* Wavetek


References


External links


Function Generator & Arbitrary Waveform Generator Guidebook

Waveform Generator Fundamentals

Function Generator Fundamentals
* . History of the function generator. {{Authority control Electronic test equipment