CAN Vehicle Toolbox - How to read errors?

조회 수: 1 (최근 30일)
Gerard Benenyan
Gerard Benenyan 2011년 10월 25일
답변: Harimurali 2024년 2월 7일
Hello, Does anyone know how to get error status at each CAN message send, using the Vehicle Network Toolbox communication blocks? Thanks, Gerard B.

답변 (1개)

Harimurali
Harimurali 2024년 2월 7일
Hi Gerard,
The CAN Receive and CAN Unpack blocks can be used to get the error status of each message. Follow the steps mentioned below to do the same:
  • Connect the "CAN Msg" port of the "CAN Receive" block to the input port of the "CAN Unpack" block.
  • Open the block parameters of the "CAN Unpack" and enable the "Ouput error" option.
  • The above step will result in a new "Error" output port for the "CAN Unpack" block.
  • This port outputs the error status of the message received. Ouput value 1 implies that the incoming message is an error frame, and 0 implies that there is no error.
Refer to the following documentation for information about "CAN Unpack" block: https://www.mathworks.com/help/releases/R2023b/vnt/ug/canunpack.html

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by