01-09-2007 10:42 AM
01-10-2007 07:54 AM
01-10-2007 04:10 PM
01-12-2007 11:08 AM
01-12-2007 01:02 PM
01-12-2007 01:29 PM
01-12-2007 05:05 PM
DaqAround,
You are right. Thank you very much
Explicitly setting buffer size with AITask.Stream.Buffer.InputBufferSize to the finite number of samples to acquire fixes the problem. I have not tried the workaround on my other system but I am confident it will work.
I am unwilling to try the interrupt-driven transfer because even my existing solution with DMA transfer is slow enough to be marginal.
The workaround I was using was to set AITask.Stream.ReadAllAvailableSamples to false and then to just call AIReader.ReadMultiSample(-1) and to wait. That also worked but it did not allow me to gain control the instant the ADC was done with conversion so I could record a CPU time tick. You solution gets me to the same place I wanted to be. Thanks again.
Dave George
970 263 9714