Hi everyone hope you're doing well so i ask if you can help me , i'm working in IHM and i have a system that contains a lot of blocs and subblocs and i want to extract all of constans how can i do ?! i tried find-system(bdroot,'SearchDepth','10','Type',Inport') but it doesn't work !!!

6 件のコメント

Birdman
Birdman 2018 年 4 月 4 日
Can you share your model?
zineb boukili
zineb boukili 2018 年 4 月 4 日
unfortunately I can not because it is confidential, my model is a sumulink file that contains several blocks, I want to extract the values of the constants of my system to exploit them after in my script on the interface HM
Jan
Jan 2018 年 4 月 25 日
"It doesn't work" is a weak description of the problem. Please explain the details. It is easier to solve a problem than to guess, what the problem is.
Guillaume
Guillaume 2018 年 4 月 25 日
編集済み: Guillaume 2018 年 4 月 25 日
it doesn't work is useless to us. If you get an error, you need to show us the exact error message (everything in red). If it does not produce the result you expect, you need to tell us what result you get and what you expected (and why)
Otherwise, we've left to speculate as to why it doesn't work. Maybe you haven't turned your computer on?
Pedro Piñon
Pedro Piñon 2018 年 10 月 28 日
good afternoon, i have a problem similar with "find system", i made a GUI in matlab and the GUI use a simulink model, the problem starts when i make the App with the "aplication compiler" in matlab, when i want to do a testing, an error appears, can you help me? thanks.
Walter Roberson
Walter Roberson 2018 年 10 月 29 日
There is no Simulink in the environment where the App is executing.

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

回答 (1 件)

stozaki
stozaki 2020 年 1 月 12 日

0 投票

Hello zineb,
Your command has two mistakes.
1. find-system : find_system
2. 'Type' : 'BlockType'
Please try following script.
find_system(bdroot,'SearchDepth','10','BlockType','Inport') %: you want to get Inport block
find_system(bdroot,'FindAll','on','SearchDepth','10','type','port') % you want to get porthandle
Regards,
stozaki

カテゴリ

ヘルプ センター および File ExchangeEvent Functions についてさらに検索

製品

タグ

質問済み:

2018 年 4 月 4 日

回答済み:

2020 年 1 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by