Simscape parameters and structures as initial condition, how?
9 次查看(过去 30 天)
显示 更早的评论
Hello to everybody!
I developed a complex Simscape model, made of masked subsystem. I masked also the initial condition variables. When I pass them from the Matlab workspace as scalar variables it works without Warnings. When I pass them as a structure of variables (as CI.x0, CI.T0, CI.P0 etc) Simscape Warnings me with a message like the following (one for each initial condition used passed as structure): " Warning: ['myModel/Perfect Insulator1'] Parameter T references non-value variable CI. This parameter will not be treated as a Simscape runtime parameter. "
What kind of warning is this?
I know that there are constraints about how to pass parameters as structures in Simscape. But I found no documentation about initial conditions (i.e: Structures as parameters)
I'm asking these just to solve a Warning in Matlab and just for personal known. It is not actually a problem because the model works fine.
Thanks
0 个评论
回答(1 个)
Harshavardhan
about 2 hours 前
Hi @Giovanni
The warning you're encountering in Simscape is related to how parameters are being handled when passed as structures. Simscape supports run-time configurability for most parameters that require a numerical value input. Hence, parameters should be directly accessible numerical values, rather than being encapsulated in structures or other non-value forms.
The model continues to work despite the warnings because Simscape can still evaluate the parameters, even if they are not treated as runtime parameters.
You can find more information about runtime parameters by typing the below line in the command window of MATLAB and by clicking the first link.
doc About Simscape Run-Time Parameters
Hope this helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Foundation and Custom Domains 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!