How can i do object oriented programming in Simulink?

24 次查看(过去 30 天)
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
编辑:Josh Kahn 2024-8-6
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
编辑:Walter Roberson 2024-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.

类别

Help CenterFile Exchange 中查找有关 Audio Processing Algorithm Design 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by