Incoming USB characters lost

1 vue (au cours des 30 derniers jours)
Gavin
Gavin le 1 Mai 2025
Commenté : Andrei le 28 Mai 2025
I have an Arduino Pico connected to MATLAB and I use Terminated (CR/LF) trigger to read the input. Each message is about 10 to 12 characters and they come in at random intervals of a few seconds but potentially as fast as a few ms apart. It works 99% of the time or so but I am losing some character packets. It appears that if I am also writing data to disk that USB packets get dropped more often. Is there a way to make sure data isn't lost?
  2 commentaires
Rik
Rik le 3 Mai 2025
You might have to share more details about your setup and your code.
Also, does there seem to be a relation between the interval and the chance of data loss?
Andrei
Andrei le 28 Mai 2025
Gavin, please contact MathWorks Support to investigate the issue.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by