Borrar filtros
Borrar filtros

Find system is not able to find Function-Call Generators

3 visualizaciones (últimos 30 días)
Vishnu Swaroop
Vishnu Swaroop el 30 de Nov. de 2017
Respondida: KVM el 30 de Nov. de 2017
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

Respuestas (1)

KVM
KVM el 30 de Nov. de 2017
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>')

Categorías

Más información sobre Schedule Model Components en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by