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 대략 12시간 전
편집: Sai 대략 8시간 전

0 개 추천

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