How can i do object oriented programming in Simulink?
32 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Balasubrahmanya Patel Kuinthodu Ganesh
am 5 Okt. 2015
Beantwortet: Joel Handy
am 6 Aug. 2019
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.
0 Kommentare
Akzeptierte Antwort
Sebastian Castro
am 5 Okt. 2015
If you want object-oriented programming in Simulink, I would recommend going the route of creating System objects.
- Sebastian
1 Kommentar
Sashank Pappu
am 6 Aug. 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
Weitere Antworten (1)
Joel Handy
am 6 Aug. 2019
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
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!