07-14-2015 03:46 AM
Greeting fellow data acquirerers,
I have a question regarding the NI DAQmx C API. I have a very basic application in Qt (for GUI) to start, stop, reconfigure and plot a measurement with a USB-6255 DAQ. The program is built up as follows:
The initial initialization consists of:
The problem seems to be, when I choose certain parameters (for example 10000 Hz rate and 10000 samples per channel) DAQmx issues an error that my application can't keep up with the acquisition. I reconfigure the task in the following way:
Now comes the twist. If, instead of stopping, reconfiguring and restarting the task, I clear the task and just perform the initial configuration with the new parameters everything works well. So my question in short would be: What happens between deleting, recreating and configuring the task that calling the configuration functions repeatedly does not do? In my opinion I am performing the same configuration steps (obviously without the channel creation) in the initialization and in the reconfiguration, so it seems odd to me that I get different results.
I would be happy about any suggestions. Thanks in advance,
FB.
07-14-2015 05:22 AM