Data Acquisition with the DSP System Toolbox
These examples will show how to acquire data from a sound card DAQ using the DSP System Toolbox. Since this functionality is supported for code generation, this functionality can be used when deploying an executable out of MATLAB functions and Simulink models to the desktop computer.
The only DAQs supported by the DSP System Toolbox are internal sound cards.
To acquire analog or audio data from a sound card DAQ in MATLAB, use the following system object:
- dsp.AudioRecorder - Record audio data using computer's audio device
- From Audio Device - Record audio data using computer's audio device
This example shows how to acquire acoustic data from a sound card.
Direction of Arrival Estimation Example(DOA)
The following example implements DOA with the code generation supported DSP System Toolbox: