TLC equivalent of find_system(...)

For Target Development/ code generation, I need to edit the ert_file_process.tlc file.
In this file I need to write a few lines to get some of the existing parameters of subsystem blocks that I have developed and user is using in the model.
In other words, I want to know which tlc directives I should use to find data (mask parameters) of the present subsystem blocks in my model. In MATLAB (.m) language, I would use the following lines to do so. I want to know the equivalent .tlc code for these:
Subsystem_blocks = find_system(bdroot,'BlockType','SubSystem');
for j=1:length(Subsystem_blocks)
p = Simulink.Mask.get(Subsystem_blocks{j});
param2 = p.getParameter('my_mask_param2');
end
I would like to use the results of param2 (the mask parameters of the existing subsystem blocks that I've developed) in the tlc file...
Thanks in advance!

 採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 11 月 19 日
編集済み: Kaustubha Govind 2012 年 11 月 19 日

0 投票

There is no equivalent of find_system in TLC, but you can write your own MATLAB helper function and call it using the FEVAL directive.

1 件のコメント

Babak
Babak 2012 年 11 月 20 日
Thanks, Kaustubha! I will try that.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by