Data Acquisition Toolbox | ![]() ![]() |
Overview
The data acquisition session consists of all the steps you are likely to take when acquiring or outputting data. These steps are
analoginput
, analogoutput
, or digitalio
creation function. Device objects are the basic toolbox elements you use to access your hardware device.
set
function or dot notation.
start
function. While the device object is running, it behaves according to the previously configured or default property values.
getdata
function. Before you can output data, you must queue it in the engine with the putdata
function.
delete
function, and remove it from the MATLAB workspace using the clear
command.
The data acquisition session is used in many of the documentation examples included in this guide. Note that the fourth step is treated differently for digital I/O objects because they do not store data in the engine. Therefore, only analog input and analog output objects are discussed in this section.
Example: The Data Acquisition Session
This example illustrates the basic steps you take during a data acquisition session using an analog input object. You can run this example by typing daqdoc3_1
at the MATLAB command line.
AI
for a sound card. The installed adaptors and hardware IDs are found with daqhwinfo
.
AI
.
AI
and extract all the data from the engine. Before start
is issued, you might want to begin inputting data from a microphone or a CD player.
AI
, you should remove it from memory and from the MATLAB workspace.
![]() | The Data Acquisition Session | Creating a Device Object | ![]() |