How can i do object oriented programming in Simulink?

29 ビュー (過去 30 日間)
Balasubrahmanya Patel Kuinthodu Ganesh
回答済み: Joel Handy 2019 年 8 月 6 日
Does simulink support object oriented programming? I want to design a control algorithm for an air compressor systems consisting of multiple compressors(objects). The compressors will have some of its specifications as parameters.
Can anyone suggest how to do?
Or any similar sample model will also be very helpful.

採用された回答

Sebastian Castro
Sebastian Castro 2015 年 10 月 5 日
If you want object-oriented programming in Simulink, I would recommend going the route of creating System objects.
These can be used in Simulink via the MATLAB System block.
- Sebastian
  1 件のコメント
Sashank Pappu
Sashank Pappu 2019 年 8 月 6 日
Thank you. Can you please provide any applications in the industry that have been done so far? I just started with system objects, But its quite new and really vast.
-Sashank

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

その他の回答 (1 件)

Joel Handy
Joel Handy 2019 年 8 月 6 日
It sounds like a simple masked subsystem may suit your needs. Its not object oriented programming but you can use it to define unique parameters for a custom subsystem block.
https://www.mathworks.com/help/simulink/block-masks.html

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by