Data Acquisition Toolbox    
daqfind

Return device objects, channels, or lines from the data acquisition engine to the MATLAB workspace

Syntax

Arguments

'PropertyName'
A device object, channel, or line property name.
PropertyValue
A device object, channel, or line property value.
obj
A device object, array of device objects, channels, or lines.
S
A structure with field names that are property names and field values that are property values.
out
An array or cell array of device objects, channels, or lines.

Description

out = daqfind returns all device objects that exist in the data acquisition engine. The output out is an array.

out = daqfind('PropertyName',PropertyValue,...) returns all device objects, channels, or lines that exist in the data acquisition engine and have the specified property names and property values. The property name/property value pairs can be specified as a cell array.

out = daqfind(S) returns all device objects, channels, or lines that exist in the data acquisition and have the property names and property values specified by S. S is a structure with field names that are property names and field values that are property values.

out = daqfind(obj,'PropertyName',PropertyValue,...) returns all device object, channels, or lines listed by obj that have the specified property names and property values.

Remarks

More About Finding Device Objects, Channels, or Lines

daqfind is particularly useful in these circumstances:

Rules for Specifying Property Names and Property Values

Example

You can use daqfind to return a cleared device object.

To return the channel associated with the descriptive name Jack:

To return the device object with a sampling rate of 8000 Hz and the descriptive name winsound0-AI, you can pass a structure to daqfind.

See Also

Functions

clear, get, propinfo


  daqcallback daqhelp