This is probably happening because the settings you are specifying exceed your DAQ card's maximum DAC conversion rate (for instance, 20Hz at 1000 samples/cycle gives an update rate of 20kHz, but many of our low-cost cards support a maximum update rate of 10kHz). Sometimes, the card will be able to keep up for a while, but will then generate an error like you are seeing.
We know that this example is problematic because it does not do any error checking during the generation to make sure that all is going well. The next version of NI-DAQ will have an updated example. In your own applications, you can check for errors during continuous analog output by getting the Task.IsDone property. Exceptions for errors will be raised when you attempt to ge
t the value of this property.
I hope this helps.
Tony H.
Measurement Studio