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!
Cite As
Long Nguyen (2024). CANUSB Blockset (https://www.mathworks.com/matlabcentral/fileexchange/27748-canusb-blockset), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |