Hi Alice-
I have been testing with this example and have been able to force the same error you're seeing when using high frequency gate signals. My performance varied and seemed to work at higher frequencies than that which you're using (i.e. approx. 500kHz).
My suggestion is to increase the buffer size and the number of samples to read to reduce the card's access to the PCI bus. Also, my operation never failed in finite operation but always failed after the first iteration in continuous operation. This meant that the actual time spent in the While loop reading data from the buffer lasted longer than the time it took to refill the buffer and resulted essentially in a buffer overwrite. This is the origin of the 10920 error and explains why the operation is heavily system performance-limited.
I would suggest increasing the buffer and samples to read to see if you can increase performance at all. Also, I would try to run the example on another machine to see if you experience better performance. My machine is a 3.2GHz P4 with 1GB of RAM.
Please let us know if you have any additional luck.
Regards,
Tom W
National Instruments