Greetings,
The function DAQ_Clear() will accomplish what you have described.  Below is the description of this function from the NI-DAQ Function Reference Help:
"DAQ_Clear turns off any current DAQ operation (both single-channel and multiple-channel), cancels the background process that is handling the data acquisition, and clears any error flags set as a result of the data acquisition. NI-DAQ then reinitializes the DAQ circuitry so that NI-DAQ can start another data acquisition."
Good luck with your application.
Spencer S.