Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

 

Signal Processing Blockset 6.10

Spectral Analysis Using Data Acquisition Hardware

This demo illustrates how Signal Processing Blockset implements the spectral analysis method known as the periodogram. A periodogram computes the spectral content of a live input signal from a microphone over time.

Data Acquisition Toolbox provides a complete set of tools for analog input, analog output, and digital I/O from a variety of PC-compatible data acquisition hardware. The toolbox lets you configure your external hardware devices, read data into MATLAB and Simulink for immediate analysis, and send out data.

This demo uses the Analog Input block from Data Acquisition Toolbox to acquire live signals from a data acquisition device and pass them into Simulink. In this demo, the sound card is selected as the input device in the Analog Input block.

This demo requires Data Acquisition Toolbox, a Windows sound card, and a microphone to send audio signals.

Contents

Watch spectral analysis using data acquisition hardware. (18 seconds)

Live Data Input

The input signal is a real-time audio signal from a microphone. In this demo, the Analog Input block is configured to receive data in asynchronous mode such that all the data is buffered and no data is lost during the simulation. The block can also be configured to run in synchronous mode in situations where only the most recent set of data is important.

Analysis

The signal is buffered into frames of 128 samples each. Each frame is then windowed using a Hamming window function, and the Signal Processing Blockset computes the FFT for the windowed frame. The system collects the FFTs for successive frames and plots them to produce a spectrogram.

Even though a Windows sound card is used for this demo, you can update this model to connect to other supported data acquisition devices. This provides you the flexibility to use the same Simulink model with different data acquisition devices.

Contact sales
Free technical kit
Trial software
E-mail this page

Get Pricing and
Licensing Options