DCPowerDriverUtility.GetChannelName Method
- Updated2024-01-04
- 1 minute(s) read

DCPowerDriverUtilityGetChannelName Method
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.
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx45 (in NationalInstruments.ModularInstruments.NIDCPower.Fx45.dll) Version: 2023
Syntax
public string GetChannelName( int index )
Public Function GetChannelName ( index As Integer ) As String
Parameters
- index
- Type: SystemInt32
Specifies which output channel name(s) to return..
Return Value
Type: StringReturns a String for the channel name that corresponds to the index.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The GetChannelName(Int32) method was called after the associated NIDCPower object was disposed. |
OutOfRangeException | The indicated index is out of range (less than zero or greater than the number of channels in the session) |
IviCDriverException | The indicated index is zero. |