SimHydraulics (Simscape) automatic block connection
1 次查看(过去 30 天)
显示 更早的评论
Hello, I'm using simscape and simhydraulics and i desperately need to connect simHydraulics (and some SimScape) components automatically, i.e. like add_line() for simulink blocks. I know that there are some comments that it is not supported for simscape, or , like in here: http://blogs.mathworks.com/seth/2010/01/21/building-models-with-matlab-code/ But maybe something changed since that.
采纳的回答
Arnaud Miege
2011-3-7
That's still the case, add_line is still undocumented and therefore, unsupported. However, if you look at the documentation for port_label, it's not difficult to infer what the syntax is for using add_line with physical ports. I have used it myself successfully, but it does mean that this syntax may change in the future (since it's undocumented).
3 个评论
Arnaud Miege
2011-3-7
In the documentation for port_label, it states to use lconn and rconn for the physical modelling connection ports. Input and Output are for Simulink signals, not physical connections.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Variable Initialization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!