| Data Acquisition Toolbox | Search  Help Desk |
| Index | Examples See Also |
Index contains the MATLAB index of a hardware channel.
Index provides you with a way of accessing the channel index programmatically. Without this property, you would use the Data Acquisition Toolbox display method to get the channel index, and then incorporate the information into your function or script.
Characteristics
| Device Objects | AI, AO |
| Class | Channel |
| Access | Read-only |
| Data Type | Double |
| Modify while Running | N/A |
Values
The values are automatically defined when channels are added to the device object with theaddchannel function.
Example
Suppose you create an analog input objectai for a sound card and add two hardware channels.
ai = analoginput('winsound')
addchannel(ai, 1:2)
The corresponding MATLAB indices are 1 and 2, respectively. These indices can be accessed with Index.
Index1 = ai.Channel(1).IndexIndex2 = ai.Channel(2).Index
See Also
Properties
Channel, ChannelName, HwCHannel