필터 지우기
필터 지우기

Tunable parameter problem.

조회 수: 13 (최근 30일)
Lucas Maiß
Lucas Maiß 2017년 11월 23일
편집: Lucas Maiß 2017년 11월 29일
Hello Matlab Team,
we recently updated MATLAB from 2014b to 2016a. After doing so, we got a lot of errors from the coder that we haven't had before.
Error: Simulink Coder Error: This block is unable to get the address of its parameter "InputValues"because an operation converted the parameter to the non-trivial tunable expression "Variable(1:max(Variable))". Blocks that require a parameter address support direct use of tunable parameters. However, when an operation such as a data type conversion or math operation is applied, a non-trivial expression that cannot be accessed by address can result. For more information, including limitations and workarounds, see sections in the Simulink Coder documentation on tunable expressions and data type considerations for tunable workspace parameters.
This error could be solved by using "Variabel" only and then addapting the workspace, but then the next error occured.
Error: Simulink Coder Error: This block is unable to get the address of its parameter "RowIndex"because an operation converted the parameter to the non-trivial tunable expression "Variable([true diff(Variable)==1])". Blocks that require a parameter address support direct use of tunable parameters. However, when an operation such as a data type conversion or math operation is applied, a non-trivial expression that cannot be accessed by address can result. For more information, including limitations and workarounds, see sections in the Simulink Coder documentation on tunable expressions and data type considerations for tunable workspace parameters.
So my question is, why does MATLAB 2016a doesn't support this operations and is there a workaround? We got them all over the model and would not like to change it everywhere.
Sincerely
Lucas Maiß
  댓글 수: 1
Lucas Maiß
Lucas Maiß 2017년 11월 29일
I found out that I can set the "Default parameter behavior = Inlined" so the errors does not occure. But I can not tune them any more. Is it possible to set the system to tunable and some blocks itself to inlined? Or can I use something like eval so it would work?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by