| Data Acquisition Toolbox | Search  Help Desk |
| propinfo | Examples See Also |
Return property information for device objects, channels, or lines.
Syntax
info = propinfo(obj);
info = propinfo(obj, 'Property');
Description
info = propinfo(obj) returns information for all device object properties to info. The information is returned as a structure containing the fields shown below. info = propinfo(obj, 'Property') returns information for the specified property to info.
Example
Sound Cards
Suppose you create the analog input objectai for a sound card and configure it to operate in stereo mode.
ai = analoginput('winsound')
addchannel(ai, 1:2);
The following command displays the default value for the SampleRate property.
The following command displays all theinfo1 = propinfo(ai);info1.SampleRate.DefaultValue
propinfo information for the InputRange property.
info2 = propinfo(ai.Channel);info2.InputRange
See Also
Functions
daqhelp