updateOutput() waveform generation working