Custom storage classes for code generation

조회 수: 1 (최근 30일)
Leopoldo Rodriguez
Leopoldo Rodriguez 2019년 7월 22일
편집: Nick Sarnie 2019년 8월 15일
I have created a custom storage class for constant parameters using the custom storage class designer, I have selected a constant memory sectio with exported data scope and checked on the "For Parameters" box. When I use that paramete from my data dictionary I am having errors in certain blocks like input ports
Parameter 'PortDimensions' of 'Model' is non-tunable but refers to tunable variables (ConstantParameter (base workspace))
How can I fix this?

답변 (1개)

Nick Sarnie
Nick Sarnie 2019년 8월 15일
편집: Nick Sarnie 2019년 8월 15일
Hi Leopoldo,
It looks like you are trying to use the custom storage class parameter in a block parameter that is not tunable. This means it will cannot have a variable in the generated code. PortDimemsions is an example of this because the code needs to be regenerated if the dimensions change. You can only use the custom parameter in block parameters that are tunable.
Thanks,
Nick

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by