'Generated code will not preserve the expression' warnings
6 ビュー (過去 30 日間)
古いコメントを表示
Warning 1
I am getting the following warning on a Simulink.Parameter object stored in my Data Dictionary:
Parameter object 'Value' property uses an expression 'ADC_V/single(ADC_COUNT)' involving division operator. Under this condition, generated code will not preserve the expression.
This Simulink.Parameter object is indeed defined by an expression in the value field:
=ADC_V/single(ADC_COUNT)
Those variables used in the expression are other Simulink.Parameter objects in the same Data Dictionary structure.
Warning 2
Similarly, I am getting the following warning on another Simulink.Parameter:
Expression '[IUVW_GAIN_MATRIX_REV_A IUVW_GAIN_MATRIX_REV_A]' involves variable 'IUVW_GAIN_MATRIX_REV_A', whose value is nonscalar. Due to the nonscalar value, the expression will not be preserved in the generated code.
where those variables are multi-dimensional Simulink.Parameter objects (3x3 matrices).
Question
I do not want to preserve the expression in my code, I just want to preserve the expression in my Data Dictionary only.
How can I surpress these warnings?
2 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Types についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!