what is the difference between generator and oscillator?
The oscillator converts whatever waveform you give to it, as a power source to specific waveforms, like square, sine, triangular or any other. The generator, on the other hand, converts mechanical energy into electrical energy.