In the .zip file, you can find a model , which can be used as a library (I'm lazy to put it as a proper Simulink library, forgive me).
I implemented only Standard CAN, but you could extend it easily.
There are mainly 3 blocks:
CanConfig: Set the speed, mask, etc..
CanRead: Read the data from CANUSB
CanWrite: Write data to CANUSB
You need to install the canusb driver (could be downloaded from canusb website), and, of course, the CANUSB module to use with this blockset.
Have a lot of fun with this!
Cita come
Long Nguyen (2025). CANUSB Blockset (https://it.mathworks.com/matlabcentral/fileexchange/27748-canusb-blockset), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |