Tasks

Most of the operations that you can perform with the NI-DAQmx library, such as acquiring data or generating a signal, require that you first create an NI-DAQmx task.

In the NI-DAQmx .NET library, NI-DAQmx tasks are represented by instances of the Task class. In a program, you can create new NI-DAQmx tasks and dispose of them when the program ends. When a single task targets the same device and takes the same type of measurement, it must be disposed before it can be created and used again in the same application.