Manipulating Variables Created in Simulink with CANape
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Don Zheng
am 21 Jul. 2017
Bearbeitet: Don Zheng
am 21 Jul. 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
Antworten (0)
Siehe auch
Kategorien
Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!