Use a Custom Data Package Parameter in a Lookup Table - Code Generation Issue
古いコメントを表示
Hi,
I create a Custom Data Package with a Custom Storage Class (definition files attached) in order to have tunable parameters with custom code generation. I want to use a Parameter from this Custom Data Package as Table Data and Breakpoints of a Lookup Table in Simulink.
When I try to generate code, I have this error:
The generated code will inline the numeric value of run-time parameter 'Table' of 'LookUp Table' because the parameter is a transformation of one or more dialog parameters. The code for this block will not use the tunable variables (customParameter (base workspace)).
The Parameter definition is:
customParameter = myPackage.Parameter; customParameter.Value = [0 2 5 10 15 15]; customParameter.CoderInfo.StorageClass = 'Custom'; customParameter.CoderInfo.Alias = ''; customParameter.CoderInfo.Alignment = -1; customParameter.CoderInfo.CustomStorageClass = 'Pragma'; customParameter.CoderInfo.CustomAttributes.ConcurrentAccess = false; customParameter.Description = ''; customParameter.DataType = 'single'; customParameter.Min = []; customParameter.Max = []; customParameter.DocUnits = '';
Can somebody help me?
1 件のコメント
Oliver Ottinger
2017 年 7 月 5 日
Did you find a solution? I have the same issue.
回答 (2 件)
Shrikant Gondkar
2017 年 12 月 27 日
3 投票
This warning message could be caused by a type conflict between the data type of the variable in the MATLAB workspace and in the Simulink model.
you can inherit the data type.
Jack Zhang
2025 年 6 月 11 日
編集済み: Jack Zhang
2025 年 6 月 11 日
1 投票
the reason is data type conflict between the data type of the variable in the MATLAB workspace and in the Simulink model
you can inherit the data type. setting is as follow:

カテゴリ
ヘルプ センター および File Exchange で Simulink Coder についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!