06-23-2006 10:17 AM
06-26-2006 06:05 PM
Hi,
So the error you are seeing is not related to the 10000 sample buffer size that you are setting programmatically. That buffer is on the RAM on your computer. The error actually has to do with the 2 sample buffer on the device itself.
Make sure that your application is transferring the data via DMA channels and not interrupts. This should be the default setting. Another possibility is that there could be some noise on your signal and that the program could actually be trying to take more period measurements than you intend. Creating a lowpass filter could help alleviate that problem. I hope that you find this information helpful.
Regards,
Hal L.
06-27-2006 11:01 AM
06-28-2006 04:20 PM
Hi,
The information that you are looking for is in the NI-DAQmx C Reference Help. This help file lists all of the text based functions available with the DAQmx driver and provides descriptions as well. It is located in Start >> All Programs >> National Instruments >> NI-DAQ.
Once you have the file open, go to the index tab and enter in "data transfer methods." This will give you a more thorough description of DMA vs. Interrupts.
You can find the functions to see what method your application is using/change this method by to NI-DAQmx C Properties >> List of Channel Properties >> Counter Input >> Advanced >> Data Transfer and Memory.
Regards,
Hal L.
06-29-2006 08:44 AM