find-system command

조회 수: 4 (최근 30일)
zineb boukili
zineb boukili 2018년 4월 4일
답변: stozaki 2020년 1월 12일
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
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일
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

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by