"Unresolved symbols found" at parsing. Symbols supposed to be included from a header file
40 views (last 30 days)
Show older comments
I have made a Stateflow diagram with two states. One of the transition is "after(d1,CLK)" d1 is a constant which is supposed to be declared outside Simulink, somehow included from a header file. That makes sense if you use "Real time workshop" to generate code. As it is now, every time I parse the chart I get "Unresolved symbols found" complaining about d1. I have seen it is possible to use constants outside Simulink. I just don't know how to do it. Can somebody help?
0 Comments
Accepted Answer
Kaustubha Govind
on 7 Nov 2011
You need to add the header to the Simulation Target->Custom Code->Header File pane of the model Configuration Parameters window. See Integrating Custom C Code for Nonlibrary Charts for Simulation.
2 Comments
Kaustubha Govind
on 8 Nov 2011
The former is for code-generation only. The latter is used during simulation.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!