- Adding Lifelines: https://www.mathworks.com/help/systemcomposer/ref/systemcomposer.interaction.interaction.addlifeline.html
- Adding Fragments: https://www.mathworks.com/help/systemcomposer/ref/addfragment.html
- Adding Messages: https://www.mathworks.com/help/systemcomposer/ref/addmessage.html
- Adding Duration Constraints: https://www.mathworks.com/help/systemcomposer/ref/adddurationconstraint.html
Can I generate a sequence diagram from an existing architecture in system composer?
4 ビュー (過去 30 日間)
古いコメントを表示
I have a SW architecture with different interacting modules.
Right now, i can create the sequence diagram manually by dragging and dropping each module in ' Sequence Diagrams'
But I need to add the interacting ports manually.
Is there a way to create the sequence diagram with the interacting ports programmatically?
0 件のコメント
採用された回答
Nithin
2025 年 6 月 9 日
It is possible to programmatically create sequence diagrams, add lifelines (modules) and interactions (messages or ports) using the "System Composer API". Refer to the following MATLAB documentation which explains the process of creating sequence diagram programmatically in detail: https://www.mathworks.com/help/systemcomposer/ug/create-sequence-diagrams-programmatically.html
You can also refer to the following MATLAB documentation to know more about the eacheach function used:
Hope this answers your query.
3 件のコメント
Les Beckham
2025 年 6 月 9 日
Based on those links, it looks like the ability to add Lifelines, Fragments, and Messages is available in 2024b, and Duration Constraints was added in 2025a.
Nithin
2025 年 6 月 10 日
@SANDEEP VIKRAM, the feature of building sequence diagrams using programmatic interfaces was introduced in MATLAB R2024b. There is no documented way to do the same in R2023b.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!