필터 지우기
필터 지우기

Find system is not able to find Function-Call Generators

조회 수: 3 (최근 30일)
Vishnu Swaroop
Vishnu Swaroop 2017년 11월 30일
답변: KVM 2017년 11월 30일
I am trying to find all function-call generators in the model using find_system and it is not working (returns an empty array). Here is my command:
find_system('<model name>','LookUnderMasks','all','FindAll','on','FollowLinks','on','Variants','AllVariants','BlockType','Function-Call Generator')
I have tried all combinations of the flags, but nothing works. I have looked at this page to find the keyword: https://www.mathworks.com/help/releases/R2016b/simulink/slref/block-specific-parameters.html
Also, find_system does work for other blocks

답변 (1개)

KVM
KVM 2017년 11월 30일
You can use the Model explorer to find all the parameters associated to the block or you can use the command line (where gcb = your selected block) : >> get_param(gcb,'ObjectParameters')
I decided to use 'ReferenceBlock' as parameter for the search which for a Function Call generator is : 'simulink/Ports & Subsystems/Function-Call Generator'
In Sum, try this commande line: >>find_system(bdroot,'LookUnderMasks','all','FindAll','on','FollowLinks','on','Variants','AllVariants','ReferenceBlock',['simulink/Ports &',char(13),'Subsystems/Function-Call',char(13),'Generator'])
bdroot = Your top Simulink model ('<model name>')

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by