フィルターのクリア

Simulate subblocks of a Simulink Model

3 ビュー (過去 30 日間)
Nataraj
Nataraj 2013 年 2 月 21 日
Hello Everyone,
I want to simulate only one of the sub system (sub block) of the simulink model with defined inputs of the sub system. Is it possible to perform this. Can anyone let me know how can I successfully perform this. Any suggestion on this topic is appreciated.
Thanks in advance.
ThN

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 21 日
Copy your subsystem in a new file, then lunch simulation.
  2 件のコメント
Nataraj
Nataraj 2013 年 2 月 22 日
Hi Azzi,
Thanks for the replay. I am relatively new to Simulink and Can I do this only via code?
Kind regards, ThN
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 22 日
編集済み: Azzi Abdelmalek 2013 年 2 月 22 日
If your simulink model is called model1, and your subsystem is called Subsystem1 , and you want to copy it to a new model called model2
new_system('model2') % create your new model
open_system('model2') % open your model
add_block('model1/Subsystem1','model2/new_sub')
% Now you have to complete your model by adding inputs and output of your subsystem, using
add_block
add_line
set_param

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by