Manipulating Variables Created in Simulink with CANape

2 visualizzazioni (ultimi 30 giorni)
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 Commento
Don Zheng
Don Zheng il 21 Lug 2017
Modificato: Don Zheng il 21 Lug 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

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Arduino Hardware in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by