NI-DCPower .NET fx45 API Reference

Table of Contents

DCPowerDriverUtility.GetChannelName Method

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

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: String
Returns a String for the channel name that corresponds to the index.

Exceptions

ExceptionCondition
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.

See Also

Log in to get a better experience