MATLAB: Is it possible to decode the CAN_MESSAGE without filtering on the ID in xPC Target 4.3 (R2010a)

can_messagedecodeidindependentirrespectiveSimulink Real-Timetargetxpc

I am using xPC Target 4.3 (R2010a) for CAN communication. Here I am using the data format CAN_MESSAGE and the Unpack block.
In my application I want to decode the data of the CAN_MESSAGE independent from the ID of the message.

Best Answer

To decode the CAN messages in a CAN Unpack block irrespective of the ID you can specify the ID as -1.
With this the Unpack block will unpack all messages the same way.