DAQmxAddGlobalChansToTask

NI-DAQmx C Functions

DAQmxAddGlobalChansToTask

int32 DAQmxAddGlobalChansToTask (TaskHandle taskHandle, const char channelNames[]);

Purpose

Adds global virtual channels from MAX to the given task.

Parameters

Input
Name Type Description
taskHandle TaskHandle The task to which to add the channels from MAX.
channelNames const char [] The channels to add to the task. You can specify a list or range of channels. These channels must be valid channels available from MAX. If you pass an invalid channel, NI-DAQmx returns an error. This value is ignored if it is empty.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.