Programatically write model configuration using set_param() for hardware resources

1 回表示 (過去 30 日間)
Kirti
Kirti 2025 年 9 月 9 日
編集済み: Walter Roberson 2025 年 9 月 9 日
Hi ,
I am trying to write Target hardware resources using script using set_param() API .I have tried below :
%set_param(mdl, 'SimulationMode', 'external', 'ExternalMode', 'on','TransportLayer', 'XCP on CAN');
set_param(FSS_Config4,'ExtMode', 'on');
but its not working. Can you shares example script to pgramatically write CAN_A/peripheral setting for hardware resources.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2025 年 9 月 9 日
Property names are incorrect.
Should be 'ExtMode', not 'ExternalMode'
Should be 'ExtModeTransport', not 'TransportLayer'

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by