NI-DAQmx .NET Framework 4.5 API Reference

Task.AddGlobalChannel Method

  • Updated2023-02-21
  • 1 minute(s) read
Task.AddGlobalChannel Method
Adds a preconfigured, global channel to the task.

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

Syntax

public Channel AddGlobalChannel(
	string channelName
)
Public Function AddGlobalChannel ( 
	channelName As String
) As Channel

Parameters

channelName
Type: SystemString
The name of the global channel to add to the task.

Return Value

Type: Channel
The global Channel.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

A task can contain global or local channels. Global channels are accessible to all tasks on the system. Local channels are accessible only to the task you use to create them.

Use local channels in a typical application. Use the create channel methods on AIChannels, AOChannels, DIChannels, DOChannels, CIChannels, or COChannels to create local channels and add them to the task. Use Measurement & Automation Explorer (MAX) to create, configure, and store global channels.

See Also

Log in to get a better experience