Can "Data frame Sizes" be changed longer than 8? Can "Length" be changed longer than 32?
5 views (last 30 days)
Show older comments
Byeongsoo Kim on 18 Jul 2018
Answered: Dimitri MANKOV on 11 Aug 2022
Length of some CAN message is longer than 8 bytes. Also length of signal is longer than 32bits (ex. diagnostic message) When I try to use "CAN Pack" and "canac2pcisend" for diagnostic message, error message shows in data frame sizes and length.
Is there any other way to use the message with signal?
Dimitri MANKOV on 11 Aug 2022
The maximum length of a CAN message is by definition 64 bits / 8 bytes. If your message contains more data, you're probably using CAN-FD instead of CAN, in which case a "CAN-FD Pack" block should be used instead.
With that being said, how exactly you'd like to use these 64 bits is completely up to you. You can use them for 1x double signal, or for 1x 32-bit signal and 4x 8-bit signals, etc. What's important is that the signal size defined in Simulink matches with the signal sizes defined in the "CAN Pack" block.
I hope this is helpfu!
Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!