User manual MATLAB DATA ACQUISITION TOOLBOX QUICK REFERENCE GUIDE
Lastmanuals offers a socially driven service of sharing, storing and searching manuals related to use of hardware and software : user guide, owner's manual, quick start guide, technical datasheets... DON'T FORGET : ALWAYS READ THE USER GUIDE BEFORE BUYING !!!
If this document matches the user guide, instructions manual or user manual, feature sets, schematics you are looking for, download it now. Lastmanuals provides you a fast and easy access to the user manual MATLAB DATA ACQUISITION TOOLBOX. We hope that this MATLAB DATA ACQUISITION TOOLBOX user guide will be useful to you.
Lastmanuals help download the user guide MATLAB DATA ACQUISITION TOOLBOX.
You may also download the following manuals related to this product:
MATLAB DATA ACQUISITION TOOLBOX RELEASE NOTES (181 ko)
Manual abstract: user guide MATLAB DATA ACQUISITION TOOLBOXQUICK REFERENCE GUIDE
Detailed instructions for use are in the User's Guide.
[. . . ] Data Acquisition ToolboxTM Quick Reference Guide
Getting Started
If you have a sound card installed, you can run the following code, which collects one second of data.
ai = analoginput('winsound'); addchannel(ai, 1); set(ai, 'SampleRate', 11025) set(ai, 'SamplesPerTrigger', 11025) start(ai) data = getdata(ai); plot(data) delete(ai) clear ai
MATLAB
These components are shown below.
®
Interactive commands and data Data Acquisition Toolbox M-file functions Data acquisition engine
Disk file
To list all the toolbox functions and demos, type
help daq
Hardware driver adaptors
To display the command line help for a function, type
daqhelp function_name
Properties, data, and events
Hardware driver Properties, data, and events Sensors Hardware Actuators
Toolbox Components
The Data Acquisition ToolboxTM components are described below.
Component Purpose
M-files
Create device objects, acquire or output data, configure property values, and evaluate your acquisition status and resources. Store device objects and their property values, control the storage of acquired or queued data, and control the synchronization of events. Pass properties, data, and events between the hardware and the engine.
Device Objects
Device objects allow you to access specific hardware subsystems. The device objects supported by the toolbox include analog input (AI), analog output (AO), and digital I/O (DIO) objects.
Engine
Adaptors
AI object
AO object
DIO object
Toolbox device objects
AI subsystem
AO subsystem
DIO subsystem
Hardware subsystems
1
The Data Acquisition Session
A complete data acquisition session consists of five steps:
1 Creating a device object 2 Adding channels or lines to the device object 3 Configuring property values to control the behavior of
Adding Channels or Lines
Before you can use a device object, you must add at least one channel or line to it. [. . . ] Specify the M-file callback function to execute when a trigger occurs. Specify the channel serving as a trigger source. Specify the condition that must be satisfied before a trigger executes. Specify one or more voltage values that must be satisfied before a trigger executes. Specify the delay value for data logging. Specify the units in which trigger delay data is measured. Specify the number of additional times the trigger executes. Indicate the number of triggers that execute. Specify the type of trigger to execute.
8
Analog Input Status Properties Logging Running SamplesAcquired SamplesAvailable
Indicate whether data is being logged to memory or to a disk file. Indicate whether the device object is running. Indicate the number of samples acquired per channel. Indicate the number of samples available per channel in the engine.
Analog Input Hardware Configuration Properties ChannelSkew ChannelSkewMode ClockSource InputType SampleRate
Specify the time between consecutive scanned hardware channels. Specify how the channel skew is determined. Specify the clock used to govern the hardware conversion rate. Specify the analog input hardware channel configuration. Specify the per-channel rate at which analog data is converted to digital data.
Analog Input Callback Properties DataMissedFcn InputOverRangeFcn
Specify the M-file callback function to execute when data is missed. Specify the M-file callback function to execute when acquired data exceeds the valid hardware range. Specify the M-file callback function to execute when a run-time error occurs. Specify the M-file callback function to execute every time a predefined number of samples is acquired for each channel group member. Specify the number of samples to acquire for each channel group member before a samples acquired event is generated. Specify the M-file callback function to execute just before the device object starts running. Specify the M-file callback function to execute just after the device object stops running. [. . . ] Specify a descriptive name for the device object. Specify how the value held by the analog output subsystem is determined. Store data that you want to associate with a device object.
12
Channel Properties
Analog Output Channel Properties ChannelName DefaultChannel Value HwChannel Index NativeOffset NativeScaling OutputRange Parent Type Units UnitsRange
Specify a descriptive channel name. Specify the value held by the analog output subsystem. [. . . ]
DISCLAIMER TO DOWNLOAD THE USER GUIDE MATLAB DATA ACQUISITION TOOLBOX
Lastmanuals offers a socially driven service of sharing, storing and searching manuals related to use of hardware and software : user guide, owner's manual, quick start guide, technical datasheets... In any way can't Lastmanuals be held responsible if the document you are looking for is not available, incomplete, in a different language than yours, or if the model or language do not match the description. Lastmanuals, for instance, does not offer a translation service.
Click on "Download the user manual" at the end of this Contract if you accept its terms, the downloading of the manual MATLAB DATA ACQUISITION TOOLBOX will begin.