Why does MATLAB require half a second of preloaded data for continuous background generation?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Acquisition Toolbox Supported Hardware dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!