This chapter describes how to use the Data Acquisition Toolbox™ block library. The toolbox block library contains six blocks:
Analog Input — Acquire data from multiple analog channels of a data acquisition device.
Analog Input (Single Sample) — Acquire a single sample from multiple analog channels of data acquisition device.
Analog Output — Output data to multiple analog channels of a data acquisition device.
Analog Output (Single Sample) — Output a single sample to multiple analog channels of data acquisition device
Digital Input — Acquire the latest set of values from multiple digital lines of a data acquisition device.
Digital Output — Output data to multiple digital lines of a data acquisition device.
Note: You cannot use the legacy interface on 64-bit MATLAB®. See About the Session-Based Interface to acquire and generate data on a 64-bit MATLAB.
You can use these blocks to acquire analog or digital data in a Simulink® model, or to output analog or digital data from the model to a hardware device. You can interconnect these blocks with blocks in other Simulink libraries to create sophisticated models.
Note: You need a license for both Data Acquisition Toolbox and Simulink software to use these blocks.
Use of Data Acquisition Toolbox blocks requires Simulink, a tool for simulating dynamic systems. Simulink is a model definition and simulation environment. Use Simulink blocks to create a block diagram that represents the computations of your system or application. Run the block diagram to see how your system behaves. If you are new to Simulink, read the Getting Started section of the Simulink documentation to better understand its functionality.
For more information about the blocks see Data Acquisition Simulink Blocks Basics.