DAQmxTaskControl
- Updated2023-03-16
- 1 minute(s) read
int32 DAQmxTaskControl (TaskHandle taskHandle, int32 action);
Purpose
Alters the state of a task according to the action you specify. To minimize the time required to start a task, for example, DAQmxTaskControl can commit the task prior to starting.
Parameters
| Input | ||||||||||||||||||||||||||
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| taskHandle | TaskHandle | The task used in this function. | ||||||||||||||||||||||||
| action | int32 | Specifies how to alter the task state.
|
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. |