LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't achieve 10MS/s with 6115 using VC++

I have a PXI-6115, and I am trying to sample two channels simultaneously at 10MS/s. I only need about 50k samples per channel. I've attached the code I am using. It works fine up to 5MS/s, but if I try to put in a value larger than than, it ignores the value and takes the data at 5MS/s. What am I doing wrong?


0 Kudos
Message 1 of 2
(2,558 Views)
Hello Jwoll,

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.

0 Kudos
Message 2 of 2
(2,535 Views)