Create a Simulink model using command Lines
Ältere Kommentare anzeigen
Hello!
I'm trying to create a Simulink model using command Lines. So my goal is to connect a subsystem to a inductor inside a for loop or more precisely connect the right port of the subsystem to the left port of the inductor inside a for loop (files attached)
My question is: how can i connect a susbsystem to a inductor using command lines?
thanks in advance
Antworten (1)
Fangjun Jiang
am 12 Apr. 2022
1 Stimme
6 Kommentare
Ibrahim Ben Mrad
am 12 Apr. 2022
Fangjun Jiang
am 12 Apr. 2022
See doc. usually add_line('connect_model','Constant/1','Gain/1'); SimScape blocks might be different. Again, see doc.
Fangjun Jiang
am 12 Apr. 2022
Bearbeitet: Fangjun Jiang
am 12 Apr. 2022
For example, The line already existed in your picture above can be done by:
add_line(gcs,'Inductor/RConn1','Resistor/LConn1')
Ibrahim Ben Mrad
am 12 Apr. 2022
Bearbeitet: Ibrahim Ben Mrad
am 12 Apr. 2022
Fangjun Jiang
am 12 Apr. 2022
add_line(gcs,'HF1/RConn1','Inductor/LConn1')
Ibrahim Ben Mrad
am 12 Apr. 2022
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
