From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-12-2009 05:50 PM
I'm trying to use the DAQ Assistant to read in some voltage data, but I keep getting "Error -200279 occured at DAQmc Read (Analog 1D Wfm NChan NSamp).vi:2. The error message suggests increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples. My timing settings are as follows: Continuous Samples for Acquisition Mode, 1K Samples to Read, 1K Sample Rate (Hz). I'm curious what would be the optimal settings for this. If I set the mode to 1 Sample (On Demand), would that simply take a sample each time the loop runs? Please help.
Thanks,
Brian
Solved! Go to Solution.
05-12-2009 06:42 PM
05-13-2009 10:00 AM
Brian,
Thank you for posting on the NI Forums. Adnan is right about why you are getting this error. If you use On Demand sampling you will only get a value returned for every iteration of the loop. If you only need to sample every so often and it does not need to be highly consistent then this could work for your applications, but it depends on what type of application you have. At what speed do you need to sample?
05-13-2009 01:12 PM
Thanks for the general rule of thumb. I'll give it a try.
Brian
05-13-2009 01:20 PM
05-13-2009 01:22 PM
Thanks, Aaron. On Demand seems to have fixed this particular problem, though I'm sure more will pop up 🙂
Brian