3.55556

3.6 | 9 ratings Rate this file 33 Downloads (last 30 days) File Size: 7.48 KB File ID: #5572

Audio Spectrum Analyzer

by

 

27 Jul 2004 (Updated )

Simulink model and Data Acquisition Toolbox analyze streaming audio from Windows soundcard.

| Watch this File

File Information
Description

The MATLAB Function block can be used to stream live data into a Simulink model. This can be useful to validate models with real data under different test conditions for example.

This example uses the Data Acquisition Toolbox to process audio data from the Windows soundcard. (It's actually just a modified version of dspstfft_win32.mdl, a demo that ships with the Signal Processing Blockset.)

You could just as easily use the same approach to interface your models to other support plug-in data acquisition hardware, not to mention a variety of other data sources.

 * You could interface Simulink to scientific instruments like an oscilloscope, network analyzer, power meter, or waveform generator using the Instrument Control Toolbox.

 * Your models could process live video and image data from cameras and frame grabbers supported by the Image Acquisition Toolbox.

 * You could hook your model up to Oracle or another ODBC or JDBC compliant database using the Database Toolbox.

 * Your Simulink models can take advantage of MATLAB's Generic DLL calling capability.

Just about anything you can do in MATLAB, you can use the MATLAB Function block to do from Simulink.

Hopefully this example helps get you started. For more advanced capabilities, refer to the Simulink documentation regarding S-functions, particularly M-file S-functions. They are more sophisticated and use a particular API which provides a lot of power and functionality.

Happy modeling and simulating with live data!

Required Products Data Acquisition Toolbox
DSP System Toolbox
Simulink
MATLAB release MATLAB 7 (R14)
Other requirements Windows
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
11 Nov 2009 Erdal Bizkevelci  
16 Aug 2008 dongho hong

DPS Engine

14 Jun 2008 Holmes Pinto  
05 Dec 2007 Ebenezer Chellasamy Edwin

It is an innovative Idea. Good. Can you extend this work for Radio Spectrograph?

05 Apr 2007 Hao Yanchun

Thank you for your devotion.

06 Dec 2006 Andy G  
28 Sep 2006 ennio sanson  
05 Sep 2006 indrasen R  
17 Apr 2006 subhashis bhoumik  
21 Aug 2005 aasim azooz  
Updates
12 Jan 2010

copyright

25 Mar 2010

Restored compatibility with MATLAB 7 (R14)

Contact us