User manual MATLAB DATA ACQUISITION TOOLBOX QUICK REFERENCE GUIDE
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. Diplodocs 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.
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.
[. . . ] The rules associated with configuring properties include · Property names are not case sensitive. · set(ai) returns all settable properties for ai, while set(ai. Channel(index)) returns all settable properties for the specified channel. · get(ai) returns the current property values for ai, while get(ai. Channel(index)) returns the current property values for the specified channel.
Advantech® Measurement ComputingTM National Instruments® Parallel port Microsoft® Windows® sound card
For example, to create the analog input object ai for a sound card:
ai = analoginput('winsound');
2
Property Types
Toolbox properties are divided into these two main types: · Common properties that apply to every channel or line contained by a device object · Channel/line properties that you can configure for individual channels or lines Common and channel/line properties are divided into these two types: · Base properties that apply to all supported hardware subsystems of a given type (AI, AO, DIO) · Device-specific properties that apply to the specific hardware you are using
set and get display the base properties followed by the
Issuing a Trigger
To log data to the engine or a disk file (AI), or to output data from the engine (AO), a trigger must occur. The trigger types supported for all hardware are given below.
Trigger Type Immediate Description
The trigger occurs just after you issue start. [. . . ] Configure and return the specified property.
Executing the Object start stop trigger wait
AI
AO
DIO
Start a device object. Wait for the device object to stop running.
Working with Data flushdata getdata getsample getvalue peekdata putdata
AI
AO
DIO
Remove data from the data acquisition engine. Extract data, time, and event information from the data acquisition engine. Queue data in the engine for eventual output.
6
Working with Data putsample putvalue
AI
AO
DIO
Immediately output one sample. Write values to lines.
Getting Information and Help daqhelp
AI
AO
DIO
Display help for device objects, constructors, adaptors, functions, and properties. Return property characteristics for device objects, channels, or lines.
daqhwinfo propinfo
General Purpose binvec2dec clear daqcallback daqfind
AI
AO
DIO
Convert binary vector to decimal value. A callback function that displays event information for the specified event. Return device objects, channels, or lines from the data acquisition engine to the MATLAB workspace. Specify that the hardware device starts when a manual trigger is issued. Specify the M-file callback function to execute when a trigger occurs. 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 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 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 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 the M-file callback function to execute whenever a predefined period of time passes. [. . . ] 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. Indicate the offset to use when converting between the native data format and doubles. Indicate the scaling to use when converting between the native data format and doubles. Specify the range of data as engineering units.
13
Digital I/O Base Properties
Digital I/O base properties are divided into two main categories: common properties and line properties. [. . . ]
DISCLAIMER TO DOWNLOAD THE USER GUIDE MATLAB DATA ACQUISITION TOOLBOX
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.