Stop transmitting message on CAN bus

I'm trying to cease the transmission of a CAN message under certain conditions.
Closest I have is a boolean going in to a switch block (port 2) with the CAN Pack going in to port one and nothing on port 3. The output is going to the CAN transmit.
The problem is that although the message is not transmitted, a zero is transmitted in it's place, dispite the port being empty.
I've tried using If Else blocks, and using a Switch case too, both times with the default output grounded, but they don't work. Does anyone have any ideas?

댓글 수: 4

Jonas
Jonas 2019년 7월 26일
Which CAN transmission block are you using? Which hardware are you using? Are you using Simulink Real-time?
Stephen
Stephen 2019년 7월 26일
I'm using CAN Transmit from: Vehicle Network Toolbox/CAN Communication.
Just using the Mathworks Virtual Channel and canTool to view at the moment but will be using Kvaser later.
Using regular Simulink and pacing the simulation 1:1
Urmila Rajpurohith
Urmila Rajpurohith 2019년 8월 5일
Hey Stephen,
Can you provide the version of MATLAB which you are using?
And can you provide more information regarding your input to CAN Pack block.
Urmila Rajpurohith
Urmila Rajpurohith 2019년 8월 6일
could you share the model so that i can reproduce the same.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Vehicle Network Toolbox에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2019년 7월 25일

댓글:

2019년 8월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by