Data Acquisition Toolbox | ![]() ![]() |
Display summary information for device objects, channels, or lines
Syntax
disp(obj)
disp(obj.Channel(index)
)
disp(obj.Line(index)
)
Arguments
obj |
A device object. |
obj.Channel(index) |
One or more channels contained by obj . |
obj.Line(index) |
One or more lines contained by obj . |
Description
displays summary information for the specified device object disp(obj)
obj
, and any channels or lines contained by obj
. Typing obj
at the command line produces the same summary information.
displays summary information for the specified channels contained by disp(obj.Channel(index))
obj
. Typing obj.Channel(index)
at the command line produces the same summary information.
displays summary information for the specified lines contained by disp(obj.Line(index))
obj
. Typing obj.Line(index)
at the command line produces the same summary information.
Remarks
You can invoke disp
by typing the device object at the MATLAB command line or by excluding the semicolon when creating a device object, when adding channel or lines, or when configuring property values using the dot notation.
Example
All the commands shown below produce summary information for the device object AI
or the channels contained by AI
.
AI = analoginput('winsound') chans = addchannel(AI,1:2) AI.SampleRate = 44100 AI.Channel(1).ChannelName = 'CH1' chans
![]() | digitalio | flushdata | ![]() |