Data Acquisition Toolbox | ![]() ![]() |
Documentation Examples
This guide provides detailed examples that show you how to acquire or output data. These examples are collected in the example index, which is available through the Help browser
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 M-files and are treated as demos. You can list all Data Acquisition Toolbox demos by typing
help daqdemos
All documentation example M-files begin with daqdoc
. To run an example, type the M-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 ComputerBoards 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:
getsample
function, or output single values using the putsample
function.ClockSource
property to Software
.![]() | The Contents and Readme Files | The Quick Reference Guide | ![]() |