Data Acquisition Toolbox

Performing Data Acquisition in Simulink

Data Acquisition Toolbox provides Simulink blocks for acquiring live or measured data directly into your models, or for configuring hardware interfaced to data acquisition devices. These blocks are only available using the Legacy interface and the 32-bit version of MATLAB.

You can use the blocks to quickly evaluate the response of your Simulink models and algorithms with real-world data instead of designing systems against static data sets, such as those saved in files. You can also use the blocks to verify and validate models against live, measured data as part of the design verification process.

Data Acquisition Toolbox provides six Simulink blocks:

  • Analog Input: Acquire data from analog channels
  • Analog Input Single Sample: Acquire a single sample from each channel at each sample time
  • Analog Output: Output data to analog channels
  • Analog Output Single Sample: Send out a single sample from each channel at each sample time
  • Digital Input: Acquire the latest set of values from digital lines
  • Digital Output: Output data to digital lines

Input blocks let you acquire live data from hardware and then incorporate that data directly into your models. Output blocks let you configure hardware from your Simulink models, including instructing hardware to send data.

Each block enables you to configure parameters including device type, channels, and lines. The analog blocks also enable you to configure other relevant parameters such as asynchronous versus synchronous acquisition, sample rate, block size, and data type. You can connect the Simulink model to a broad range of data acquisition hardware, and later change devices with minimal changes to your model. By using Simulink with Data Acquisition Toolbox, you can verify designs with live data.

Analog Input block dialog box.

Analog Input block dialog box. Configure parameters such as acquisition mode, device type, and sample rate.

Acquiring live analog data directly into a Simulink model using the Analog Input block.

Acquiring live analog data directly into a Simulink model using the Analog Input block. By using live data, you can quickly try different data permutations and make adjustments in your Simulink model.

Try Data Acquisition Toolbox

Get trial software

Enabling Project-Based Learning with MATLAB, Simulink, and Target Hardware(한국어)

View webinar