Simulink Code generation question(Validation result : NOT RUN)
7 views (last 30 days)
Show older comments
Hi, there
.
I'm going to generate C code by using Simulink blocks.
In mathworks's web, there are many videos regarding simulink c code generation.
and I'm following theses.
.
as a example, I draw this simulink models
.
.
It's really simple.
and I changed my model configuration parameters as follow
1. Report
1. target selection : ert.tlk(embedded corder)
2. code generation : Model-to-Code (check)
3. static code metrics(check)
4. MATLAB source code as comments(check)
2. Solver : solver options to Fixed-step, discrete
3. Interface : Data Exchange
.
except these, i didn't change anythings
and then, I build my model and Code generation reports are comes up.
they are said..
.
.
I can not understand the reason of Validation result : Not run.
but the codes are generated.
.
.
what is the meaning of 'Not run??'
and How can I run my models in Visual Studio??
.
.
I'll wait your answer. Thank you for your reading.
Bye~
0 Comments
Answers (1)
Sherman
on 7 Jun 2016
When you have Simulink Coder and Embedded coder you have the option to use the Code Generation advisor. This feature checks your model configuration to see if any settings could cause sub-optimal code generation. You can configure it to run every time that you build in which case the results of the advice are hyperlinked in that 'Validation Status:' field.
You can look at steps 6 and 7 in the example: http://www.mathworks.com/help/ecoder/examples/generating-code-using-embedded-coder.html
0 Comments
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!