DAQmxLoadTask
int32 DAQmxLoadTask (const char taskName[], TaskHandle *taskHandle);
Purpose
Loads an existing named task from Measurement & Automation Explorer (MAX). If you use this function to load a task, you must use DAQmxClearTask to destroy it.
Parameters
Input | ||
Name | Type | Description |
---|---|---|
taskName |
|
A named task in MAX. |
Output | ||
Name | Type | Description |
taskHandle |
|
A reference to the task returned by this function. |
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. |