How to program an oscilloscope