Data Acquisition Toolbox 

Supported Hardware - sound cards

MATLAB and Simulink support Microsoft Windows compatible sound cards by using the Data Acquisition Toolbox.

Using MATLAB to Acquire and Generate Audio Data
The Data Acquisition Toolbox allows users to easily acquire sound directly from sound cards into MATLAB, or to generate live sound from MATLAB to sound cards.

Note: Sound card support from Data Acquisition Toolbox requires the Legacy interface and the 32-bit version of Data Acquisition Toolbox and MATLAB. The 32-bit versions of Data Acquisition Toolbox and MATLAB can be installed on a 64-bit Windows OS.

MATLAB Sound Examples:

  1. Acquiring Data with a Sound Card
  2. Generation of Audio Using the Sound Card
  3. Other MATLAB sound examples

Download the MATLAB sound code example to get started using MATLAB for audio acquisition.

Functionality only available with the toolbox includes the ability to buffer the acquisition so that you can analyze the data in MATLAB as it is being acquired. The toolbox also enables you to easily switch hardware from a sound card to another supported data acquisition device with minimal changes to your MATLAB script.

Using Simulink to Acquire and Generate Audio Data
Data Acquisition Toolbox provides Simulink blocks that enable you to acquire live sound data directly into Simulink models, or to output live sound data from your Simulink models. You can verify and validate your model against live, measured data as part of Model-Based Design.

Simulink Sound Examples:

  1. Performing Spectral Analysis on Live Audio Data
  2. Verifying a Stereo Signal Design
  3. Live Data Acquisition, Signal Processing and Data Output

Download the Simulink sound example to get started using Simulink for audio acquisition.

The toolbox enables you to easily switch hardware from a sound card to another supported data acquisition device with minimal changes to your Simulink model.

Other Useful Resources

  1. User story discussing how Ford Motor Company uses live audio signals collected with the Data Acquisition Toolbox in order to run their spark knock detector and analyzer application in "real time."
  2. Acquiring Data from Sensors and Instruments Using MATLAB 55:21 (Webinar)