automating oscilloscope capture