04-17-2007 08:04 AM
04-17-2007 08:19 AM
However "Buffer write" reallocate memory each time a 4-bytes array is sent to it. therefore sending out 10ms worth of data takes 500ms, sending 100ms takes 5seconds!!
I'd be very surprised if this isn't primarily driven by the application code in some way. Can you post your code?
It may well be that the attempt to call DAQmx Write at a rate of 2 MHz is the main problem. There is some overhead with every such call and I wouldn't expect you to be able to call that function 2 million times a second.
I also suspect that different application coding would allow you to write much bigger chunks of data at a time rather than only 4-bytes each. You're right that such a technique makes it harder to "stop gracefully" with desired output values, but I still think that's your best bet overall.
-Kevin P.
04-17-2007 08:56 AM