Manipulating Variables Created in Simulink with CANape
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Don Zheng
el 21 de Jul. de 2017
Editada: Don Zheng
el 21 de Jul. de 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
Respuestas (0)
Ver también
Categorías
Más información sobre Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!