Hello Nhanna,
If you would like to stop the output task at the same time as your control loop you should wire the stop button into the
stop(T) input on the DAQ Assistant. The DAQ Assistant help says the following regarding this method:
"To optimize single-point performance when using this Express VI in a loop, wire
this input to the same stop control you wire to the conditional terminal of the
while loop."
Matt Anderson
Hardware Services Marketing Manager
National Instruments