How to connect simmechanice blocks?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I've try to connect two blocks in simmechanice with add_line commend, but it does not work. I want to know how I can connect Machine Environment block with Ground block. And then for connecting joint blocks with body blocks that has got different ports. Of course, I test some comments like Block1PortHandles = get_param('Mymodel/Block1','PortHandles'); and then add_line('Mymodel',Block1PortHandles.LConn(1), Block2PortHandles.LConn(1)); but I can not to add lines between block.
I am looking forward to your reply. With regard, Aghil
0 Commenti
Risposte (1)
Steve Miller
il 1 Feb 2018
We have posted an example on the MATLAB Central File Exchange that shows how to use MATLAB commands to add Simscape blocks and connect them.
To connect a block to an existing line, simply use add_line() to connect the new block to any of the ports that are already connected to that line. The above example connects the Solver Configuration block to two other blocks which are already connected.
Thanks,
--Steve
0 Commenti
Vedere anche
Categorie
Scopri di più su Multibody Dynamics in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!