DAQmx Clear Task (VI)
- Updated2023-02-21
- 2 minute(s) read
DAQmx Clear Task (VI)
Owning Palette: DAQmx - Data Acquisition VIs and FunctionsInstalled With: NI-DAQmx
Clears the task. Before clearing, this VI aborts the task, if necessary, and releases any resources the task reserved. You cannot use a task after you clear it unless you recreate the task.
If you use the DAQmx Create Task VI or the DAQmx Create Virtual Channel VI within a loop, use this VI within the loop after you are finished with the task to avoid allocating unnecessary memory. Refer to Task Creation and Destruction for more information about when to use this VI.
![]() |
task in is the name of the task to clear. Unlike the task/channels in input on some VIs, you cannot wire a virtual channel to this input. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
error out contains error information. This output provides standard error out functionality. |