how to use BytesAvailable for reading serial data on raspberry pi over matlab ?
Afficher commentaires plus anciens
I am trying to do the same thing BytesAvailable does in matlab when trying to read data over a Serial port but through a raspberry pi this time.
the read() function to read data over the serial pins of the raspberry does not include a BytesAvailable function, is there anyway around it ?
1 commentaire
Greg
le 12 Mai 2018
BytesAvailable is a property of a serial object. If you've used the serial function to connect to the Raspberry Pi, it will have BytesAvailable and should function exactly as with any other serial connection.
For completeness, run
properties(obj) % where |obj| is the same first input as to your read()
Réponses (0)
Catégories
En savoir plus sur MATLAB Support Package for Raspberry Pi Hardware dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!