Simulink Code generation question(Validation result : NOT RUN)

7 次查看(过去 30 天)
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~

回答(1 个)

Sherman
Sherman 2016-6-7
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.

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by