how can I make the signalbuilder run

2 ビュー (過去 30 日間)
Ahmed BOULMANE
Ahmed BOULMANE 2015 年 6 月 22 日
コメント済み: Ahmed BOULMANE 2015 年 6 月 25 日
can I run the signalbuilder through Matlab script's ? if yes, so how ?
thank you

回答 (3 件)

Abhiram Bhanuprakash
Abhiram Bhanuprakash 2015 年 6 月 22 日
Hi Ahmed,
You can use the sim command to run any Simulink model using command line API. Documentation here
So, you can create a Simulink model with a signal builder block and then use sim to run it by command line.
You can also set block parameters of a Simulink block using set_param. You can query them using get_param. You can use these functions on the signal builder block to set or query block parameters.
Hope this helps,
Cheers!
Abhiram
  1 件のコメント
Ahmed BOULMANE
Ahmed BOULMANE 2015 年 6 月 22 日
thank you Abhiram,
the problem is that I'm looking to make run a single group among those that exist in the signalbuilder, knowing that we have 60 groups.

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


Ahmed BOULMANE
Ahmed BOULMANE 2015 年 6 月 24 日
Heeeeelllppp !!

Anthony Poulin
Anthony Poulin 2015 年 6 月 24 日
編集済み: Anthony Poulin 2015 年 6 月 24 日
Hello,
Do you want to select a specific group of your signal builder?
If YES, use the command: signalbuilder(block, 'activegroup', index) which sets the active group with the index that you specified. Then run your simulation, with the "sim" command (like Abhiram says).
  1 件のコメント
Ahmed BOULMANE
Ahmed BOULMANE 2015 年 6 月 25 日
thank you :) it works good (y) otherwise, have you any idea about how can I load the index from a .txt file

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by