NI-DAQmx .NET Framework 4.5 API Reference

COChannelCollection.Item Property (String)

  • Updated2023-02-21
  • 1 minute(s) read
COChannelCollection.Item Property (String)
Gets the COChannel with the specified virtual channel name. In Visual C#, this property is the indexer.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.45.49302

Syntax

public virtual COChannel this[
	string virtualChannelName
] { get; }
Public Overridable ReadOnly Default Property Item ( 
	virtualChannelName As String
) As COChannel
	Get

Parameters

virtualChannelName
Type: SystemString
One or more virtual channel names that the retrieved COChannel operates on.

Property Value

Type: COChannel
The specified COChannel.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

By using a comma or colon in virtualChannelName, you can retrieve more than one channel at a time. For more information refer to Channels.

See Also