| Contents | Index |
| On this page… |
|---|
The Contents file lists the toolbox functions and demos. You can display this information by typing:
help daq
This guide provides detailed examples that show you how to acquire or output data. These examples are collected in the example index.
Some examples are constructed as mini-applications that illustrate one or two important features of the toolbox and serve as templates so you can see how to build applications that suit your specific needs. These examples are included as toolbox files and are treated as demos. You can list all Data Acquisition Toolbox demos by typing
help daqdemos
All documentation example files begin with daqdoc. To run an example, type the file name at the command line. Note that most analog input (AI) and analog output (AO) examples are written for sound cards. To use these examples with your hardware device, you should modify the adaptor name and the device ID supplied to the creation function as needed.
Additionally, most documentation examples are written for clocked subsystems. However, some supported hardware devices—particularly Measurement Computing devices—do not possess onboard clocks. If the AI or AO subsystem of your hardware device does not have an onboard clock, then these examples will not work. To use the documentation examples, you can:
Input single values using the getsample function, or output single values using the putsample function.
Configure the ClockSource property to Software.
Note You cannot use the legacy interface on 64–bit MATLAB. Use the session-based interface to acquire and generate data. |
The Quick Reference Guide provides an overview of the toolbox capabilities, functions, and properties. You might find it useful to print this guide and keep it handy when using the toolbox. You can access this guide through the Help browser.
The toolbox includes a large collection of tutorial demos, which you can access through the Help browser Demos pane. Use the following command to open the Help browser to the toolbox demos:
demo toolbox 'Data Acquisition'
Note that the analog input and analog output tutorials require that you have a sound card installed. The digital I/O tutorials require that you have a supported National Instruments board with digital I/O capabilities.
![]() | Accessing Your Hardware | Examining Your Hardware Resources | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |