01-26-2006 01:39 PM
01-27-2006 01:13 PM
I took a look at your code and the first thing I would recommend is
that you transition to using the NI-DAQmx driver to perform data
acquisition with your PXI-6115. The NI-DAQmx C Function calls are
much easier to use than the old Traditional NI-DAQ calls you are using
in your program. You can download the newest version of NI-DAQmx driver for your device
here, and I have attached an example program that shows how the code
for your application is drastically simplified with the new function
calls.
As far as your program goes, are you able to change the sampling
rate to anything other than 5 MS/s? You're program displays the
configured selections for sample and scan clocks using the printf
statement. What are these numbers? I am thinking that you
might not be properly configuring your sample and scan clocks, and one
is limiting the execution of another.
Transitioning to NI-DAQmx will make programming and troubleshooting
your application much easier, so take a look at the attached example
program and see if you can use it to sample at rates above 5
MS/s. If you are restricted to using the Traditional NI-DAQ
Function Calls for some reason, let us know and hopefully we can still
solve your problem.
Regards,
Travis G.