Hi,
i have the same issue as:
My problem is, that i don't have the example file. Mathworks support couldn't help me. Has anyone this file?
Regards
Bernd
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
i have the same issue as:
My problem is, that i don't have the example file. Mathworks support couldn't help me. Has anyone this file?
Regards
Bernd
Bernd,
I don't have the example file per se, but from your linked post there is description of the approach used via a bit mask. I'm going to reach out to the poster Kash Olia to see if he is able to attach or give some guidance on his solution.
Best,
Matthew
Bernd,
I have a VERY old model for this, looks like R2014b - I have no idea if it still works, but maybe you can study it and implement with your project.
Cheers,
-Brian
Bernd,
That's the limitation of the Simulink CAN block but there is a way to send multiple messages with one mailbox. what you need to do is to use a Switch Block to pass through different messages to one mailbox, then come up with a logic to control the switch. I do not have my old software to share but the model Brian McKay provided below describes it clearly. Here is the screenshot of the model if you are not able to open it up:
As you can see there are two CAN messages with different data bytes are being passed to eCAN XMT block through a Switch block.
Hi,
thanks for your answers. The problem for transmitting multiple Can Messages with one mailbox number is solved. Do you have a second model where you can receive multiple Can Messages with one mailbox number? Brian McKay wrote in his post in 2017, that you need to configure the mask in the "system initalize block".
Regards
Bernd