MATLAB Answers

How to include "CAN_MESSAGE" data type into s-function created using s-function builder?

3 views (last 30 days)
Gaurav Kumar Sahani
Gaurav Kumar Sahani on 18 May 2015
Commented: Birdman on 11 Oct 2017
I have s-functions created using s function builder which needs to send/receive using CAN Pack/Unpack blocks provided by Vehicle Network Toolbox and Embedded Coder. I need to include the "CAN_MESSAGE" data type within the s function to use it. How can I include this data type or how can I use these CAN Pack/Unpack blocks?
Thanks in advance

Answers (1)

Shankar Subramanian
Shankar Subramanian on 27 May 2015
Hi Gaurav,
Do you have the Vehicle Network Toolbox? If so, you should be able to create custom blocks (write C++ S-functions) seeing the following link( Creating Custom Blocks).
Thanks
Shankar

Community Treasure Hunt

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

Start Hunting!