How to change the device type from Matlab?

Hello!
In order to change automatically from Matlab the device type in Simulink I am using this line:
set_param('ProdHWDeviceType', 'Generic->32-bit Embedded Processor');
But without result. After running this line, nothing will change in the Hardware Implementation panel. Do I need to set some other properties?
Thank you!

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2013 年 7 月 16 日

0 投票

You need to pass in the name of the model as the first argument:
set_param('modelname', 'ProdHWDeviceType', 'Generic->32-bit Embedded Processor');

カテゴリ

ヘルプ センター および File ExchangeCode Generation for ARM Cortex-M and ARM Cortex-A Processors についてさらに検索

質問済み:

2013 年 7 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by