Can you suggest a way to minimise USB latency using data acquisition tool box with NI6211.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to try a real time control idea using a NI 6211 DAQ analogue I/O unit through USB. That means single inputs and outputs from within a MatLab loop; I cannot send/receive streams of data. I know the USB will make it pretty slow, but I just want to try out the idea. Can you suggest the best way to minimise the slowness?
0 commentaires
Réponse acceptée
Plus de réponses (2)
Lucien Robinault
le 29 Jan 2018
Hello, It will surely be too late for a solution, but have you tried this : https://fr.mathworks.com/help/daq/examples/software-analog-triggered-data-capture.html ?
And to control the data output flow to control in real time you can use the event 'DataRequired' who would trigger a function sending adequat output signal to control your device. https://fr.mathworks.com/help/daq/examples/generate-continuous-and-background-signals-using-ni-devices.html
You can easly see how it's done in the software analog triggered data capture example.
0 commentaires
Jens
le 8 Juin 2020
There is a toolbox that seems to replace the Mathworks interface (Matlab DAQ) to the NI driver (NI-DAQmx). Maybe it can help people with a similar problem:
And an illustration of how much faster it is:
3 commentaires
Jens
le 10 Juin 2020
I'm glad you were successful!
I also hear new Matlab versions perform much better for digital in/out over USB. Any experiences with that?
Voir également
Catégories
En savoir plus sur Data Acquisition Toolbox Supported Hardware dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!