A function generator is usually a piece of electronic test equipment or software used to generate different types of electrical waveforms over a wide range of frequencies. Some of the most common waveforms produced by the function generator are the sine wave, square wave, triangular wave and sawtooth shapes. These waveforms can be either repetitive or single-shot. Integrated circuits used to generate waveforms may also be described as function generator ICs. In addition to producing sine waves, function generators may typically produce other repetitive waveforms including sawtooth and triangular waveforms, square waves, and pulses. Another feature included on many function generators is the ability to add a DC offset. Although function generators cover both audio and RF frequencies, they are usually not suitable for applications that need low distortion 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 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 amplifiers or to introduce an error signal into a control loop. Function generators are primarily used for working with analog circuits, related pulse generators are primarily used for working with digital circuits.
Electronic instruments
Working
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 from a constant current source. This produces a linearly 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 lineartriangle wave. By varying the current and the size of the capacitor, different frequencies may be obtained. Sawtooth waves can be produced by charging the capacitor slowly, using a 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 square wave 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 can be obtained by using a comparator and the sawtooth or triangle signal. Most function generators also contain a non-linear diode shaping circuit that can convert the triangle wave into a reasonably accurate sine wave by rounding off the corners of the triangle wave in a process similar to clipping in audio systems. 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 the output waveform, and often the ability to automatically and repetitively "sweep" the frequency of the output waveform between two operator-determined limits. This capability makes it very easy to evaluate the frequency response of a given electronic circuit. Some function generators can also generate white or pink noise. More advanced function generators are called arbitrary waveform generators. They use direct digital synthesis techniques to generate any waveform that can be described by a table of amplitudes.
Specifications
Typical specifications for a general-purpose function generator are:
Produces sine, square, triangular, sawtooth, 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 covers 0.1 Hz to 11 MHz.
Frequency stability of 0.1 percent per hour for analog generators or for a digital generator.
Maximum sinewave distortion of about 1% 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.
A completely different approach to function generation is to use software 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 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 gears, designed to reproduce different types of functions, either periodic, or single-shot. 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 calculators.