Hi, I encountered the same problem as yours. I ran Analog output and I set parameter in CfgSampClkTiming as FiniteSamps. And the task did stop when the data was all wrote. However, the IsTaskDone() didn't return expected value when it stopped. So have you figured out the reason? Thanks.
Just wanted to pop in to let you know that this thread is running on 12 years old, and so to get the most up to date help and visibility, I'd strongly recommend creating a new thread with a detailed description of the issue you're seeing. In the meantime, here's an article on the function you mentioned compared to the WaitUntilDone function, which might be better for your use case. Best of luck!