GetChannelName(int)
- Updated2025-10-06
- 1 minute(s) read
Returns the channel name(s) from a one-based index. Use the Count property to determine the upper bound of valid values for the index.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public string GetChannelName(int index)
Parameters
| Name | Type | Description |
|---|---|---|
| index | int | Specifies which channel name(s) to return. |
Returns
Returns a System.String for the channel name that corresponds to the index.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The GetChannelName method was called after the associated NIDCPower object was disposed. |
| Ivi.Driver.OutOfRangeException | The indicated index is out of range (less than zero or greater than the number of channels in the session) |
| Ivi.Driver.IviCDriverException | The indicated index is zero. |