TaskAction Enumeration
- Updated2026-02-03
- 1 minute(s) read
Specifies how to alter the state of the task.
Syntax
Namespace: NationalInstruments.DAQmx
public enum TaskAction
Members
| Name | Value | Description |
|---|---|---|
| Start | 0 | Transitions the task to the running state, which begins device input or output. |
| Stop | 1 | Transitions the task from the running state to the committed state, which ends device input or output. |
| Verify | 2 | Verifies that all task parameters are valid for the hardware. |
| Commit | 3 | Programs the hardware with all parameters of the task. |
| Reserve | 4 | Marks the hardware resources that are needed for the task as in use. No other tasks can reserve these same resources. |
| Unreserve | 5 | Releases all previously reserved resources. |
| Abort | 6 | Aborts execution of the task. Aborting a task immediately terminates the currently active operation, such as a read or a write. Aborting a task puts the task into an unstable but recoverable state. To recover the task, use Start to restart the task or use Stop to reset the task without starting it. |