Waveform design for dual function