How do I get my current systemtargetfile details using matlab command?

2 ビュー (過去 30 日間)
Neelkanth Patel
Neelkanth Patel 2021 年 9 月 16 日
回答済み: Swatantra Mahato 2021 年 10 月 14 日
I am using custome SW in matlab called OpenECU it is a block set in order to create a SW for ECUs. I am planning to write a script that reads system target file in code generation . OpenECU supports two openecu_grt.tlc and openecu_ert.tlc. My goal is to get this as an output of matlab command. Can you suggest a command that help me acheive this?
Thanks,

回答 (1 件)

Swatantra Mahato
Swatantra Mahato 2021 年 10 月 14 日
Hi Neelkanth,
It is my understanding that you have a model in Simulink and want to get programatically the tlc file used in code generation between 'openecu_grt.tlc' and 'openecu_ert.tlc'.
One way of doing this would be to use the 'get_param' function as
get_param('model','SystemTargetFile')
For examples on using the get_param function you can refer the documentation link below
Hope this helps

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by