Sine Wave not recognize with find_system

1 回表示 (過去 30 日間)
Khoi Le
Khoi Le 2020 年 11 月 16 日
回答済み: Fangjun Jiang 2020 年 11 月 30 日
I am finding the path for Sine Wave block so that can replace a block in f14 model. However, when I use
find_system(simulinkModel, 'BlockType', 'Sine Wave')
The output said it empty and cannot find it
0×1 empty cell array
But if I replace Sine Wave with Step block it said
1×1 cell array
{'simulink/Sources/Step'}
Am I mistake something or SIne Wave cannot be found when using find_system

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 11 月 30 日
The 'BlockType' for the "Sine Wave" is 'Sin'.

その他の回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020 年 11 月 16 日
You are right. Its name contains two words and because of that, supposedly it fails to locate it.
  4 件のコメント
Khoi Le
Khoi Le 2020 年 11 月 16 日
編集済み: Khoi Le 2020 年 11 月 16 日
The solution for this maybe too complicated, but it can only barley accepted from some perspectives. But thanks
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020 年 11 月 16 日
Good luck.

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

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by