01-14-2013 11:31 PM
Hi,
I am using DAQ 6210 with DAQMx in Visual C# 2010.
Although the DAQ can provide data rate of >50MHz but right now I need to program for data rate of 1MHz initially.
I created a task with 10000 as clock rate, with "/Dev/PFI0" as external clock. Also I increased the buffer size to 100000.
Then I used the .net timer control with interval set to 1ms and at each tick I read 1000 samples using reader.ReadMultiSample command.
Correct me if I'm wrong; I think it would sample 1000 samples every 1ms.
This should give us 1000*1000=1MHz frequency and 100000 samples.
But thats not what happens, I start the acquisition for one second and I only get ~10000 samples.
I found that the timer only ticks 10 times in 1 second!
I doubled checked the timer interval value, it was set 1 throughout the program.
What am I doing wrong here? I wonder if this is some limitation for the timer control? If that is the case how can I sample at very high sample rates using DAQMx libraries only.
Can you kindly help me out here?
Thanks.
Solved! Go to Solution.
01-15-2013 12:12 AM