add an option to choose channel to generate a waveform