4.0

4.0 | 5 ratings Rate this file 243 downloads (last 30 days) File Size: 479.87 KB File ID: #13165

MATLAB oscilloscope application - example

by Tom Gaudette

 

29 Nov 2006 (Updated 27 May 2009)

Code covered by BSD License  

A user interface developed in MATLAB for collecting data from a scope and passing the measured data

Download Now | Watch this File

File Information
Description

This example demonstrates how you can use MATLAB to develop an application that both collects data from an oscilloscope and performs mathematical calculations and visualization on the data. Combining MATLAB with your oscilloscope transforms the scope into a complete test bench station for data collection and data analysis. In one application, you now have direct access to reliable scope measurements as well as advanced data analysis and report generation capabilities.

MATLAB provides a lot of functions for signal processing including signal filtering. In this example, we created several analysis routines using these functions to show you how to use MATLAB to analyze your data including making measurements unique to your application.

You may use this application with your oscilloscope using the built-in analysis routines. You are also welcome to modify the application (free-of-charge) for other instruments or to write your own analysis routines providing you also post your modified version of this MATLAB oscilloscope application on MATLAB Central for others to use.

Information on using MATLAB and Instrument Control Toolbox for instrument communication is available at:
http://www.mathworks.com/instrumentcontrol/software

Information on using MATLAB with different instrument types, manufacturers, communication protocols, and instrument drivers is available at:
http://www.mathworks.com/instrumentcontrol/hardware

Acknowledgements
This submission has inspired the following:
MATLAB oscilloscope application - simplified example, Agilent Infiniium and InfiniiVision Oscilloscopes – MATLAB Example, instrSelector
Required Products Instrument Control Toolbox
Signal Processing Toolbox
MATLAB release MATLAB 7.3 (R2006b)
Zip File Content  
HTML Files
Other Files
license.txt,
ScopeMath/addScopeMathPath.m,
ScopeMath/data/CalibrationCurveMATLAB.dat,
ScopeMath/data/CalibrationCurveMATLAB.hdr,
ScopeMath/data/MLabelledData.m,
ScopeMath/data/PlotData.m,
ScopeMath/data/TekLoad.m,
ScopeMath/demofunctions/Calc_PSD.m,
ScopeMath/demofunctions/Calc_PSD2.m,
ScopeMath/demofunctions/Filter_Bandpass.m,
ScopeMath/demofunctions/Filter_Highpass.m,
ScopeMath/demofunctions/Filter_Lowpass.m,
ScopeMath/demofunctions/Find_ZeroCrossings.m,
ScopeMath/demofunctions/Invert_Wave.m,
ScopeMath/demofunctions/Measure_Jitter.m,
ScopeMath/demofunctions/Recover_PrimaySinewave.m,
ScopeMath/demofunctions/Recover_Sinewaves.m,
ScopeMath/demofunctions/Remove_PrimarySinewave.m,
ScopeMath/demofunctions/Square_Sinewave.m,
ScopeMath/demofunctions/Transform_Pulse.m,
ScopeMath/demofunctions/Transform_Pulse2.m,
ScopeMath/drivers/tektronix_csa8000.mdd,
ScopeMath/drivers/tektronix_tds2012.mdd,
ScopeMath/drivers/tektronix_tds3012B.mdd,
ScopeMath/drivers/tektronix_tds3014B.mdd,
ScopeMath/drivers/tektronix_tds3032B.mdd,
ScopeMath/drivers/tektronix_tds3034B.mdd,
ScopeMath/drivers/tektronix_tds3052B.mdd,
ScopeMath/drivers/tektronix_tds3054B.mdd,
ScopeMath/drivers/tektronix_tds5032.mdd,
ScopeMath/drivers/tektronix_tds5034.mdd,
ScopeMath/drivers/tektronix_tds5052.mdd,
ScopeMath/drivers/tektronix_tds5054.mdd,
ScopeMath/drivers/tektronix_tds5104.mdd,
ScopeMath/drivers/tektronix_tds5104B.mdd,
ScopeMath/drivers/tektronix_tds6604B.mdd,
ScopeMath/drivers/tektronix_tds6804B.mdd,
ScopeMath/drivers/tektronix_tds7054.mdd,
ScopeMath/drivers/tektronix_tds7104.mdd,
ScopeMath/drivers/tektronix_tds7154B.mdd,
ScopeMath/drivers/tektronix_tds7254B.mdd,
ScopeMath/drivers/tektronix_tds7404B.mdd,
ScopeMath/drivers/tektronix_tds7704B.mdd,
ScopeMath/GUI/AnalyzedDataPanel.m,
ScopeMath/GUI/DataSourcePanel.m,
ScopeMath/GUI/hgComponents/MAxes.m,
ScopeMath/GUI/hgComponents/MButton.m,
ScopeMath/GUI/hgComponents/MComboBox.m,
ScopeMath/GUI/hgComponents/MDataCursorIcon.m,
ScopeMath/GUI/hgComponents/MEditField.m,
ScopeMath/GUI/hgComponents/MFigure.m,
ScopeMath/GUI/hgComponents/MLabel.m,
ScopeMath/GUI/hgComponents/MLinkIcon.m,
ScopeMath/GUI/hgComponents/MMenu.m,
ScopeMath/GUI/hgComponents/MPanel.m,
ScopeMath/GUI/hgComponents/MPanIcon.m,
ScopeMath/GUI/hgComponents/MPlot.m,
ScopeMath/GUI/hgComponents/MPlottableAxes.m,
ScopeMath/GUI/hgComponents/MProgressBar.m,
ScopeMath/GUI/hgComponents/MStatusBar.m,
ScopeMath/GUI/hgComponents/MTextedProgressBar.m,
ScopeMath/GUI/hgComponents/MToggleButton.m,
ScopeMath/GUI/hgComponents/MToolBar.m,
ScopeMath/GUI/hgComponents/MToolBarItem.m,
ScopeMath/GUI/hgComponents/MTriggerButton.m,
ScopeMath/GUI/hgComponents/MUIControl.m,
ScopeMath/GUI/hgComponents/MWaterfall.m,
ScopeMath/GUI/hgComponents/MZoomInIcon.m,
ScopeMath/GUI/hgComponents/MZoomOutIcon.m,
ScopeMath/GUI/icons/chain_linked.gif,
ScopeMath/GUI/icons/chain_unlinked.gif,
ScopeMath/GUI/icons/pan.mat,
ScopeMath/GUI/icons/tool_data_cursor.gif,
ScopeMath/GUI/icons/view_zoom_in.gif,
ScopeMath/GUI/icons/view_zoom_out.gif,
ScopeMath/GUI/icons/zoom.mat,
ScopeMath/GUI/icons/zoomminus.mat,
ScopeMath/GUI/icons/zoomplus.mat,
ScopeMath/GUI/MakeToolbarMenubar.m,
ScopeMath/GUI/MICTSource.m,
ScopeMath/GUI/PlotButton.m,
ScopeMath/help/ReleaseNotes.txt,
ScopeMath/help/ScopeMathHelpDoc_files/editdata.mso,
ScopeMath/help/ScopeMathHelpDoc_files/filelist.xml,
ScopeMath/help/ScopeMathHelpDoc_files/image001.png,
ScopeMath/help/ScopeMathHelpDoc_files/image002.jpg,
ScopeMath/help/ScopeMathHelpDoc_files/image003.png,
ScopeMath/help/ScopeMathHelpDoc_files/image004.jpg,
ScopeMath/help/ScopeMathHelpDoc_files/image005.png,
ScopeMath/help/ScopeMathHelpDoc_files/image006.jpg,
ScopeMath/help/ScopeMathHelpDoc_files/image007.jpg,
ScopeMath/help/ScopeMathHelpDoc_files/image008.jpg,
ScopeMath/help/ScopeMathHelpDoc_files/image009.gif,
ScopeMath/ScopeMath.m,
ScopeMath/utils/celltools/cellapply.m,
ScopeMath/utils/celltools/cellfilt.m,
ScopeMath/utils/celltools/cellmap.m,
ScopeMath/utils/celltools/cellmapcat.m,
ScopeMath/utils/celltools/cellmapfilt.m,
ScopeMath/utils/centerButtons.m,
ScopeMath/utils/compScopeMath.m,
ScopeMath/utils/genButtons.m,
ScopeMath/utils/getbasedir.m,
ScopeMath/utils/MIconFactory.m,
ScopeMath/utils/shrink.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
01 Dec 2006 Stephen Hughey

Are the two windows swapped in the example screen capture? The first one looks filtered & the second looks raw. I may just be looking at it wrong.

07 Nov 2007 Claude BERGMANN  
20 Feb 2008 Michel Helou  
01 Jul 2008 dfdsfsddf sadsadsasdsa  
12 Aug 2008 Kalij Lpsd

qwq

28 Jan 2009 Heng Li

The code is user friendly and easy to modify, although there is not enough examples; along with the examples in the "Tektronix TDS 2024 MATLAB instrument driver", users can do most of the things they want to do.

Please login to add a comment or rating.
Updates
19 Mar 2007

Updated description

20 Mar 2007

Fixed Description text

21 Aug 2007

Fixed a couple of bugs with fast acq mode.

27 May 2009

Removed BSD License

Tag Activity for this File
Tag Applied By Date/Time
example Tom Gaudette 22 Oct 2008 08:50:34
application Tom Gaudette 22 Oct 2008 08:50:34
matlab oscilloscope application filtering signal processing test Tom Gaudette 22 Oct 2008 08:50:34
oscilloscope The Instrument Control Team 17 Dec 2008 16:29:41
tektronix The Instrument Control Team 17 Dec 2008 16:29:42
example Vikram Boyapati 02 Jan 2009 16:01:01
tektronix LASCOUP Bertrand 07 Sep 2009 11:12:53
ui Helen Chen 18 Sep 2009 16:41:05
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com