Stop transmitting message on CAN bus

5 vues (au cours des 30 derniers jours)
Stephen
Stephen le 25 Juil 2019
I'm trying to cease the transmission of a CAN message under certain conditions.
Closest I have is a boolean going in to a switch block (port 2) with the CAN Pack going in to port one and nothing on port 3. The output is going to the CAN transmit.
The problem is that although the message is not transmitted, a zero is transmitted in it's place, dispite the port being empty.
I've tried using If Else blocks, and using a Switch case too, both times with the default output grounded, but they don't work. Does anyone have any ideas?
  4 commentaires
Urmila Rajpurohith
Urmila Rajpurohith le 5 Août 2019
Hey Stephen,
Can you provide the version of MATLAB which you are using?
And can you provide more information regarding your input to CAN Pack block.
Urmila Rajpurohith
Urmila Rajpurohith le 6 Août 2019
could you share the model so that i can reproduce the same.

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by