Complete simple waveform example