HDL Coder Pin "Code for" programatically

I use the following function
hdlset_param(model,'HDLSubsystem', subsystem_name);
to set the HDL Coder "Code for" setting programatically, but I can't seem to find a way to programattically tick the "pin" button described here https://www.mathworks.com/help/wireless-testbench/ug/generate-hdl-code.html
Is this possible?

回答(1 个)

Sai
Sai 2026-3-9,6:07
编辑:Sai 2026-3-9,9:42
Hi Nathan,
I think you dont need to worry about the "pin" here if you set the "Code for" option using below command
%/path/to/subsystem/ = 'model_name/subsys_name';
hdlset_param(model,'HDLSubsystem',/path/to/subsystem/);
Once the above command is run, HDL Coder automatically takes care of this "pin" selection and you can also see you subsystem name updated in the "Code for" option in Simulink Toolstrip.

类别

帮助中心File Exchange 中查找有关 Code Generation 的更多信息

产品

版本

R2024b

提问:

2026-3-6,15:21

编辑:

Sai
2026-3-9,9:42

Community Treasure Hunt

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

Start Hunting!

Translated by