Block output differs for different instances with same parameters
20 次查看(过去 30 天)
显示 更早的评论
I have developed a custom library block that is being used in several subsystems within a model. However, the different instances of the block generate different outputs while the block parameters are kept constant (i.e., the only variation occurs in the subsystem containing the block and not in the block itself). The trends in the outputs are the same, but the values are slightly different between block instances.
Is this a known aspect of Simulink models with respect to model complexity/model layout?
1 个评论
回答(1 个)
Abhas
2024-11-26,15:38
Yes, this behavior can occur in Simulink models due to model complexity and layout. Factors such as numerical precision, solver settings, and the execution order of blocks can lead to slight variations in output values across different instances of the same block. Even with constant block parameters, variations in the surrounding subsystem or model configuration can influence the results due to these factors.
You may refer to the following MathWorks documentation links to know more about the solver settings and the execution order of blocks:
- https://www.mathworks.com/help/simulink/gui/solver.html
- https://www.mathworks.com/help/simulink/ug/controlling-and-displaying-the-sorted-order.html
I hope this helps!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!