Solution
You can implement a code similar to the next in order to do this:
This should be after your write task ends, after the
DAQmx Stop Task.vi and the content of what you wire into the
DAQmx Write.vi depends on your specific application, but the structure should be the same.