About code generation outVal result

A very good model to run in simulink such as the first to fifth second is 0 and the fifth to tenth second is 10 ,But After automatic code generation(c++) the outVal result always showed 10 This is not what I expected.
Why does this happen? Is there something wrong with setting?

1 个评论

The quesiton is very generic. I think it will be difficult for anyone to make suggestions without seeing the details of your model, what blocks are in it, what does the model do.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

提问:

hin
2019-8-18

Community Treasure Hunt

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

Start Hunting!

Translated by