필터 지우기
필터 지우기

Need 4 CANBUS Connections

조회 수: 1 (최근 30일)
John
John 2023년 3월 13일
답변: Aishwarya Shukla 2023년 3월 31일
I have a system that contains 4 separate CAN BUSS connections. The Virtual CAN blocks in Simulink only provide 2 CAN channels for Virtual 1. IS there any way to extend this into 4 distinct CAN Channels?

답변 (1개)

Aishwarya Shukla
Aishwarya Shukla 2023년 3월 31일
Hi @John ,
Yes, it is possible to extend the number of virtual CAN channels in Simulink to support 4 separate CAN BUS connections. One way to achieve this is by using third-party CAN driver software, such as the Kvaser CAN driver, which provides support for multiple virtual channels.
To use the Kvaser CAN driver in Simulink, you will need to install the Kvaser CANlib SDK on your computer and then configure the driver in Simulink. Here are the high-level steps to follow:
  1. Download and install the Kvaser CANlib SDK from the Kvaser website.
  2. In Simulink, go to the "Simulink Library Browser" and navigate to the "Support Package Installer".
  3. Search for the "Kvaser CAN Driver" support package and install it.
  4. In your Simulink model, add a "CAN Transmit" block and open its configuration window.
  5. Under the "CAN Parameters" tab, select the "Kvaser CAN Driver" as the driver.
  6. In the "Channel" dropdown, select the virtual channel you want to use (e.g., "Virtual Channel 1").
  7. Repeat steps 4-6 for each of your four CAN BUS connections, selecting a different virtual channel for each one.
With these steps, you should be able to extend the number of virtual CAN channels in Simulink to support four separate CAN BUS connections. Note that the exact steps may vary depending on the version of Simulink and the specific CAN driver you are using.

카테고리

Help CenterFile Exchange에서 Vehicle Network Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by