The DAQmx Stop Task VI and DAQmx Clear Task VI are both used to end tasks in data acquisition programming.
The main difference is how these VIs act with allocated resources.
- Stop Task VI, simply stops the task and does not release the resources. You can start the task again without recreating it.
Figure 1. DAQmx Stop Task (VI)
- Clear Task VI, stops the task and clears it. Before clearing the task it releases any resources the task reserved. You have to recreate the task before you are able to use it again. Refer to the Creation and Destruction of Tasks in NI-DAQmx article for more information about when to use this VI.
Figure 2. DAQmx Clear Task (VI)