How to use multiple CAN bus in the same model?

2 views (last 30 days)
I would like to configure multiple CAN buses virtual channel in the same model, is there any way to achieve this? Right now I am using "MathWorks Virtual Channel" in the model.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 5 May 2022
As of MATLAB R2022a, MathWorks Virtual Channels support only one virtual bus (pair of two channels). If you need multiple virtual CAN buses, Vector virtual channels provide this functionality. Please follow the steps below:
  1. You first need to install the "Vehicle Network Toolbox Support Package for Vector CAN Devices" support package.
  2. Then you need to open Virtual Hardware Config utility from Windows Control Panel > Hardware and Sound. Under Global Settings set the "Number of Virtual CAN Devices" to 2 or greater (as needed).
  3.  Reboot your computer

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!