Create listener / Interrupt to detect new CAN message
Mostrar comentarios más antiguos
Hi all,
I am writing some routines to interface my PEAK Systems CAN USB Dongle. I managed to get it all working (send and receive) but to have a nice application I would like to know if it is possible to create a listener in Matlab. Background is I have a function Read() which is == 0 when a new message is available. I would like to detect this state in a "background" task to display the new message when the message is available. Cheers Gerd
Respuestas (2)
Chirag Gupta
el 6 de Jun. de 2011
0 votos
The CAN interface itself provides for MessageReceivedFcnCount and MessageReceivedFcn properties that can used to execute a call back whenever messages are available
There are multiple ways of creating listeners. One of the methods is if you are using MATLAB Classes and Objects, then you can define events and listeners.
Gerd
el 6 de Jun. de 2011
0 votos
1 comentario
Chirag Gupta
el 6 de Jun. de 2011
Nothing that I know off!
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!