How to transmit CAN messages only if there is a change

1 view (last 30 days)
Hi everyone,
I have multiple controller connected to my simulink model through a CAN bus.
Right now I send all the messages at each step time, like the one which controlls the controlle mode, etc,which normally do not change that much,may be once or twice throughout the simulation. But I send them anyway which apparantly cause CAN bus to be oerloaded.
I wonder how I 'll be able to send command only if there is a change in values?

Answers (0)

Community Treasure Hunt

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

Start Hunting!