Concept:
An oscillator is an electronic circuit which produces a periodic output waveform without requiring an external input signal.
Step 1: Oscillators use positive feedback.
Step 2: They convert DC supply power into AC output signal.
Step 3: The output may be sinusoidal, square, or another periodic waveform depending on circuit design.
Therefore, oscillator is used to:
\[
\boxed{\text{Generate sustained AC signal}}
\]