How to define parameters of masked subsystem as tunable parameters (for code generation using Embedded coder)

In simulink, how parameters provided to subsystem masks can be implemented as tunable parameters by RTW in generated code ? They don't appear in the window : 'Model Parameter Configuration'. So I can't define them as 'Global (tunable) Parameters'.

답변 (2개)

GENIN
GENIN 2012년 4월 27일
Hi, I use workspace variables and I have marked them as 'tunable' in the mask editor. But they still don't appear... My masked parameters are structure (conf.param1, conf.param2 etc...). Perhaps, it's the origin of the problem... ?
Hi Genin,
they should appear: if you use workspace variables for your subsystem mask parameters, those variables should appear so you can define them as tunable.
You need to mark them as tunable in the mask editor, though.
Titus

카테고리

도움말 센터File Exchange에서 Author Block Masks에 대해 자세히 알아보기

질문:

2012년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by