04-20-2006 05:48 AM
04-24-2006 05:44 AM
Hello!
We don't normally answer questions related to DDK but yes you would most likely get better performance using DMA since the CPU will get more time performing other things. I read a post that we will have DMA examples for M-series posted on our website soon. It might actually already be uploaded since they talked about February time frame.
05-11-2006 02:02 AM
05-12-2006 03:55 PM
06-14-2006 04:53 AM
I finally got some time the checkout the DMA-example and here are my findings:
- The tLinearDMABuffer has an off-by-one bug in the read and write functions. The last memcpy should copy end-current+1 bytes and the last line should be 'setLocation ( (end + 1) % _size );'.
- For some reason I only get 0 from the ADC if I unkomment the adcReset() line (which should be called for the 625x board according to the comment). In order to make the board work again I have to reset it using MAX. This isn't a problem when I run the non-DMA aiex2 from the original zip on the DDK page. And yes, I have fixed the adcReset() bug described in an other post on this list.
- Performance is excellent. Typically the processing time for one sample is 0.08 us on my machine using the VISA driver (770 us for 10000 samples). This should be compared with 3.2 us/sample using FIFO reads.
So the only annoying thing is the adcReset() issue descibed above. Is there anyone who knows something about this?
/Mathias
06-20-2006 04:20 PM