Hi,
I've got quite far with my application with the help from these forums and the help documents, but I now have a reliability question regarding the hardware buffer.
I'm using a NI-4462 with NI DAQ 8.7.1, programming in c++ with Qt 4.3.4.
From an application perspective, the larger the buffer I have, the less CPU time it takes, since all the operations that happen inbetween buffer reads (plotting, signal analysis etc.) are pretty quick with 1 large chunk of data. With many chunks of data the performance takes a hit. So:
Firstly, how can I find out the largest buffer size I can use? (By this I mean what value can I set the Interrupt timing to?)
And secondly, is there any limitation on to what value I can make the interrupt size? Since I cannot provide certain values. For example, 50000 Works, 40000 doesnt. 20000 Works, 21000 doesnt. Does it have to be some derivative of the sampling rate? By the way, when I say it doesnt work, it seems to write the settings to the DAQ Ok (via DAQmxCfgSampClkTiming) but it doesnt work properly when I start the task.
Cheers,
Phil Winder
www.philwinder.com