How to split a line in Simulink?

345 ビュー (過去 30 日間)
Moritz Ischebeck
Moritz Ischebeck 2021 年 7 月 12 日
編集済み: Paul Bussard 2022 年 8 月 3 日
Is there any way to split a line in Simulink, so that I can insert blocks with more than siso? (also, sometimes the drag and drop to insert a siso block doesnt work)
Splitting the line would preserve all junctions before and after.
I only found a workaround, that you can see in the gif.

回答 (3 件)

Devanuj Deka
Devanuj Deka 2021 年 7 月 13 日
Right-click and hold the line you want to split, and drag it to extend the newly created branch. See the following video demonstration (no audio): Video Link
Here, I'm holding the right-click on the line and dragging it to create a new branch. Drag it to the inport of your desired block, and release it to connect the line to the block.
You can include a manual switch to toggle between the outputs of the different blocks, to choose which will be used in the model simulation.
  2 件のコメント
Moritz Ischebeck
Moritz Ischebeck 2021 年 7 月 14 日
No, you have not understood my question.
I want from here:
to split a line, to achieve this:
Devanuj Deka
Devanuj Deka 2021 年 7 月 14 日
Hello @Moritz Ischebeck, I understood your question now, thanks for clarifying. A working solution to this has been posted by @Yoshi Minagawa.

サインインしてコメントする。


Yoshi Minagawa
Yoshi Minagawa 2021 年 7 月 14 日
編集済み: Yoshi Minagawa 2021 年 7 月 14 日
Hi Moritz,
I don't know how to delete only the part of the signal line as you mentioned. But you can do the similar thing by this method.
Please see the gif. You can remove the block itself by dragging mouse with pressing shift key. That enable you to keep the line shape after removing block.
I hope it will help
  1 件のコメント
Moritz Ischebeck
Moritz Ischebeck 2021 年 7 月 15 日
yeah, thats the same workaround I found aswell, as shown in my gif.
I wish, there would be an option like "crop Lines inside rectangle" next to "Auto-route Lines"

サインインしてコメントする。


Paul Bussard
Paul Bussard 2022 年 8 月 3 日
編集済み: Paul Bussard 2022 年 8 月 3 日
It would be nice if it worked like the 'break line' capability of Schematic capture SW.
Here is a workaround: Select the route and make a copy (ctrl-c, ctrl-v). That way the route is documented and the copy can be moved out of the way as needed.
I wasn't able to re-connect the copy all at once, but it was possible to re-connect each terminal without loosing the route.

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by