Why does MATLAB require half a second of preloaded data for continuous background generation?
Show older comments
I am using Data Acquisition Toolbox with an NI device and want to start continuous background generation with the following workflow:
dq = daq("ni");
start(dq, "Continuous");
write(dq, outputData);
When the initial data is too small, MATLAB returns this error:
Write at least 5000 scans to initiate background generation.
I want a practical way to determine the required initial number of scans across multiple devices, because the threshold is not known in advance for every device. I also want to understand whether this minimum applies only when continuous generation starts, or whether the same error can continue to occur after output has already started.
Accepted Answer
More Answers (0)
Categories
Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!