Why does my model, which contains a MinMax block, throw an error during code generation with Real-Time Workshop 5.1(R13SP1)?

1 view (last 30 days)
For example, I receive the following error:
Error using ==> make_rtw
Error using ==> tlc_c (InvokeTLC)
Error: "MATHLIB: Call to function max requires two nonempty inputs."

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This has been verified as a bug in Real-Time Workshop 5.1 (R13SP1). Code generation can fail under certain conditions for the Relational Operator and MinMax blocks when expression folding is enabled and input to the Relational Operator block comes from a MinMax block.
Currently, to work around this issue, disable 'expression folding'.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R13SP1

Community Treasure Hunt

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

Start Hunting!