- Navigate to Configuration Parameters (Ctrl+E) > Code Generation > Interface > Code interface Packaging
- Select "Nonreusable function"
Why Simulink Code Inspector does not verify an atomic "Subsystem" block with its "Function packaging" set to "Nonreusable function"?
10 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2022-11-30
回答: MathWorks Support Team
2022-12-1
I am using Simulink Embedded Coder to generate code for embedded systems. In order to verify the code, I need a successful generated report from the Code Inspector.
When I try to run the "CompatibilityChecker" the following warning occurs:
Check Subsystem blocks
Identify Subsystem blocks that might impact compatibility with Simulink Code Inspector
Warning
The following subsystems are not supported:
DiagnosticsModel/Diagnostics
Recommended Action
Restructure the model so that the subsystems listed in the results set 'Function packaging (RTWSystemCode)' to 'Inline' , 'Nonreusable function' or 'Reusable function'.
If 'Nonreusable function' is selected, the subsystem must use the following configuration:
'Function name options (RTWFcnNameOpts)' is set to 'User specified'
'Function interface (FunctionInterfaceSpec)' is set to 'void_void'
'Function with separate data (FunctionWithSeparateData)' is set to 'off'.
For non-inlined subsystems, the model must set 'Code interface packaging (CodeInterfacePackaging)' to 'Nonreusable function'. If 'Reusable function' is selected, the model must set 'Pass reusable subsystem outputs as' to 'Individual arguments'.
After having followed the recommended actions the issue persists.
Is there a workaround to overcome this issue?
采纳的回答
MathWorks Support Team
2022-11-30
When the "Function packaging" of an atomic "Subsystem" block is set to "Nonreusable function", the model's code interface packaging needs to be configured to "Nonreusable function" as well. This change will make the model and code compatible with Simulink Code Inspector. You can do this by following the instructions below:
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Compatibility 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!