Specifies how to alter the state of the task.

Syntax

Namespace: NationalInstruments.DAQmx

public enum TaskAction

Members

NameValueDescription
Start0

Transitions the task to the running state, which begins device input or output.

Stop1

Transitions the task from the running state to the committed state, which ends device input or output.

Verify2

Verifies that all task parameters are valid for the hardware.

Commit3

Programs the hardware with all parameters of the task.

Reserve4

Marks the hardware resources that are needed for the task as in use. No other tasks can reserve these same resources.

Unreserve5

Releases all previously reserved resources.

Abort6

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.