Please refere to the picture of my code. While samples are output, I am transfering new sample points in to the buffer. I want to close the task after the last sample is output. How can I achiev this?
At the moment it throws the error -200290. Meaing that there is no more data to output in the buffer. How can I finish the task in a controled manner?
Did you check the example in this link?
http://www.ni.com/example/25370/en/
And here: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Mg6SAE&l=en-US
It is a continuous acquisition, the Wait Until Done VI will not return.