@Milosh wrote:
I have to plot value immediately for visual feedback.
Thank you for answer & sorry for my english 🙂
Milosh
I'm doing the same thing. I use regular scanning, and DAQmxReadAnalogF64() with a timeout of 0.0. Then check sampsPerChanRead to see if any samples were actually read. I also check the error return for errors DAQmxErrorTimeoutExceeded and DAQmxErrorSamplesNotYetAvailable so that I can check for errors but ignore these.
Be aware that if you specify DAQmx_Val_GroupByChannel, the data will be arranged like this:
c1_1, c1_2, 0, 0, ..., c2_1, c2_2,...
where I have used c1_2 to indicate channel 1, second sample. That is, if you specify N samples per channel, the first sample for the second channel is at point N in your array.
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com