Build errors with Simulink CAN Transmit block on Raspberry Pi with CAN_MESSAGE as input
Mostrar comentarios más antiguos
Hello,
I have a problem with the CAN-Transmit block from the Raspberry Pi Simulink hardware support package. If I put a CAN Pack block in front of the Transmit block and set the input datatype to CAN_MSG for the Transmit block, I get the following error message during the build process:
The data type of input port 1 is 'CAN_MESSAGE'. MATLAB System block 'CAN Transmit' only supports built-in, binary point scaling [Slope=1.0, Bias=0.0], Simulink enumeration, and bus data types.
Tested with Simulink 2021b and 2022a.
Does anyone have the same problem or a solution for me?
1 comentario
Henry Rake
el 5 de Sept. de 2022
Hey Alexander,
i have the same issue. Were you able to fix it?
Kind regards
Henry
Respuestas (1)
Vikky Patil
el 10 de Nov. de 2022
1 voto
Try enabling "Output as bus" in CAN Pack block and then rebuild the model
2 comentarios
Leslie Hall
el 23 de Feb. de 2024
This worked for me, thanks!
Renato
el 4 de Dic. de 2025
worked with NVIDIA support package as well, thanks.
Categorías
Más información sobre Controller Area Network en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!