how to capture waveform on oscilloscope