Manipulating Variables Created in Simulink with CANape

2 vues (au cours des 30 derniers jours)
Faran Malik
Faran Malik le 19 Juil 2017
Modifié(e) : Don Zheng le 21 Juil 2017
Hello,
I have some variables in some simulink models that I would like to view and modify via CANape at run-time. I've generated the code from these models and it's all loaded onto a controller. I'm able to see various variables in my elf file as well when looking at it through CANape. However, when viewing these variables some of the values that are stored in these variables do not make sense and it does not seem like I'm able to manipulate some of these variables through CANape either. An example is that I'm trying to view a local variable which is basically a counter through CANape. Is CANape able to work with local variables?
Thanks in Advance.
  1 commentaire
Don Zheng
Don Zheng le 21 Juil 2017
Modifié(e) : Don Zheng le 21 Juil 2017
Regarding the capability of CANape, you need to contact Vector's technical support.
Regarding the variables, be they from signals, parameters, or states, you should be able to control whether they are generated as local or global variables with the custom storage class: https://www.mathworks.com/help/releases/R2017a/ecoder/examples/data-dictionary-driven-modeling-using-simulink-data-objects.html

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Arduino Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by