Data Acquisition with the Simulink Desktop Real-Time Toolbox

These examples will show how to acquire data from a DAQ using the Simulink Desktop Real-Time Toolbox.

Since this functionality does not provide MATLAB functionality (Simulink blocks only) and it is not supported for code generation, this functionality is best used when running Simulink models directly on a desktop computer in normal or external mode.

Contents

Hardware

There are many different DAQ units. The primary vendors are Analog Devices and NI. A sound card is also considered a DAQ and can be used for sampling. Use the following website to determine what data acquisition hardware is supported:

Hardware Support for the Simulink Desktop Real-Time Toolbox

Simulink

To acquire analog or audio data from a DAQ in Simulink, use the following blocks:

Examples

There are multiple examples in the documentation showing how to acquire data from a data acquisition board.