Manipulating Variables Created in Simulink with CANape
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Don Zheng
2017-7-21
编辑:Don Zheng
2017-7-21
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
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!