A perl script to analyse 'oscilloscope' output, showing mode, median, mean and running gnuplot to plot a curve and points
Extract serial/data file open and close functions, add 'oscilloscope' mode, plot options for forward and reverse detector voltages. Order command line options alphabetically.
Improve help text, order options alphabetically, explain each mode. Swap order of opening of serial port and data file - if you can't open the serial port, don't truncate existing data. Oscilloscope mode setting of the DDS frequency is optional. Add oscilloscope legend text and appropriate window title.