| Data Acquisition Toolbox™ | ![]() |
disp(obj) disp(obj.Channel(index)) disp(obj.Line(index))
obj | A device object. |
obj.Channel(index) | One or more channels contained by obj. |
obj.Line(index) | One or more lines contained by obj. |
disp(obj) displays summary information for the specified device object obj, and any channels or lines contained by obj. Typing obj at the Command Window produces the same summary information.
disp(obj.Channel(index)) displays summary information for the specified channels contained by obj. Typing obj.Channel(index) at the Command Window produces the same summary information.
disp(obj.Line(index)) displays summary information for the specified lines contained by obj. Typing obj.Line(index) at the Command Window produces the same summary information.
You can invoke disp by typing the device object at the MATLAB® Command Window or by excluding the semicolon when
Creating a device object
Adding channel or lines
Configuring property values using the dot notation
As shown below, you can also display summary information via the Workspace browser by right-clicking a device object, a channel object, or a line object and selecting Explore > Display Summary from the context menu.

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 | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |