Extracted waveform rms to function.