07-28-2014 10:05 AM
Hey!
I try to logg and also show data in a chart! However, it only runs when I remove the chart. Otherwise I get the error:
Error -200279 :
Possible reason(s):
Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.
It seems that the initialization of the chart is too slow and data is already lost when its ready to run.
How should I build the system up otherwise?
Thank you for your help!
Solved! Go to Solution.
07-29-2014 10:06 PM
This error occurs because samples have been overwritten by the DAQ card, may this can help u.
http://digital.ni.com/public.nsf/allkb/AB7D4CA85967804586257380006F0E62?OpenDocument
07-30-2014 06:41 AM - edited 07-30-2014 06:42 AM
1. Get rid of the Wait that is inside of your loop.
2. Remove the "Samples to Read" control and leave that input to the DAQmx Timing unwired. Since you are using Continuous Samples, all you are doing is limiting the buffer size.
3. You don't need to check for the Task Done. You are using continuous mode, so it will never be done until you stop it.
4. You might want to read more than 1 sample at a time. Change your DAQmx Read to be 1 Channel Multiple Samples. You then should specify how many samples you want to collect.
Here's a cleaned up version of your VI that I did really quick.
07-30-2014 06:57 AM
Thank you!