Can pack with two multiplexors

조회 수: 7 (최근 30일)
Enzo Yacometti
Enzo Yacometti 2024년 1월 23일
답변: Alan 2024년 1월 31일
Hello I need to use a Can pack block to send a CAN signal with two multiplexor to an ECU (hardcoded message) but the Can pack block doesnt accept it and only considers the first one in alphabetical order, will this issue be resolved soon? Is there any prctical workaround? Thanks

답변 (1개)

Alan
Alan 2024년 1월 31일
Hi Enzo,
I am assuming that you are using the CAN Pack block from the Vehicle Network Toolbox and that you are trying to pass two signals with multiplex type “Multiplexor”.
Unfortunately, you can only specify one Multiplexor signal in the CAN Pack block. The single signal of type 'Multiplexor' is used to select from the signals of multiplex type Multiplexed. Multiple signals cannot be used to determine this, hence the limitation.
To demonstrate this, I have attached a model which contains two Multiplexed signals being selected by a “Multiplexor” signal which can be chosen between a pulse wave and its inverted pulse wave using a manual switch.
I hope this resolves your issue. For detailed information on how to use the Can Pack block, do refer its documentation:

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by