How to approach unpacking *condensed* CAN messages in Simulink?

1 次查看(过去 30 天)
I'm using Simulink for analysing a CAN bus, but i'm not sure how to approach unpack so-called condensed CAN messages. There is a block for unpacking normal CAN messages in the Vehicle Network Toolbox, but this doesn't apply in my case with condensed messages.
The image shows (albeit simplified) how the messages are composed. Byte 1 indicates in which context(rows) the message must be interpreted. Byte 2 and 3 are used for actual data; to configure settings or receive values of eg. analog inputs.
The CAN unpack block can separate the bytes in a CAN message, but doesn't account for their context. How can I best approach that? I've got the academic license, so I have access to (almost?) all toolboxes if necessary.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Vehicle Network Toolbox 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by