How can i do object oriented programming in Simulink?

19 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Sebastian Castro
Sebastian Castro il 5 Ott 2015
Modificato: Josh Kahn il 6 Ago 2024
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 Commento
Sashank Pappu
Sashank Pappu il 6 Ago 2019
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

Accedi per commentare.

Più risposte (1)

Joel Handy
Joel Handy il 6 Ago 2019
Modificato: Walter Roberson il 6 Ago 2024
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.

Categorie

Scopri di più su Audio Processing Algorithm Design 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!

Translated by