NI-DAQmx VI and Function Reference

Content Type
Programming Language
Current manual

DAQmx Stop Task (VI)

Owning Palette: DAQmx - Data Acquisition VIs and Functions
Installed With: NI-DAQmx

Stops the task and returns it to the state the task was in before the DAQmx Start Task VI ran or the DAQmx Write VI ran with the autostart input set to TRUE.

If you do not use the DAQmx Start Task VI and the DAQmx Stop Task VI when you use the DAQmx Read VI or the DAQmx Write VI multiple times, such as in a loop, the task starts and stops repeatedly. Starting and stopping a task repeatedly reduces the performance of the application.

DAQmx Stop Task

civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

cerrcodeclst.gif

error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

Was this information helpful?

Log in to get a better experience