Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

Continuous Generation in C - Speed issues

$
0
0

I'm working with NI PCI-6561 using C language (VS2010). My task is to stream data continuously from memory (12 channels, ~16MHz). I've modified "ContinuousGeneration-StreamFromMemory" example for my needs. Everything works perfectly on my dev PC (SandyBridge, i7), but I have problems with my program to run on industrial PC (axiomtek fab101 PCI backplane, Ivy Bridge, i5). It works only if I reduce clock speed to 4Mhz. Even at 8Mhz I have buffer underrun errors. Any ideas how I can improve my program? NI docs tells about DMA mode, but I can't find an example how to use it using C.


Viewing all articles
Browse latest Browse all 2167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>