attaching callback function to a serialdev object.
Afficher commentaires plus anciens
I've got a raspberry pi, that control a CNC machine. this machine is running on a version of GRBL for arduino mega.
I can connect to the pi with no issues, and can connect to the GRBL to write\read data to\from.
but, I can't figure out how to attach a callback function that will read in real time data coming from the serial port.
if I'm defining the serial as 'serialdev' object, using the "configureCallback" function returns with: Undefined function 'configureCallback' for input arguments of type 'raspi.internal.SerialDev'.
and I can't define it as 'serialport' object, because the port I'm supposed to enter as an argument, is on a different device...
any help would be very much appreciated.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Simulink Supported 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!