ScopeMath (fileid 13165) is a MATLAB-based GUI that uses the Instrument Control Toolbox to retrieve waveforms from an oscilloscope and analyze them in various ways. ScopeMath_Simple is a simplified version that demonstrates how to set up a similar GUI for your own purposes. It shows how to:
1) Create the GUI
2) Connect to the instrument
3) Get data from the instrument, and
4) Clean up the resources when exiting the program.
For more information on the Instrument Control Toolbox, see http://www.mathworks.com/products/instrument/