Incoming USB characters lost
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Rik
2025-5-3
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?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!