필터 지우기
필터 지우기

Error when generating code from model with S-Function Builder block

조회 수: 6 (최근 30일)
Alex
Alex 2023년 9월 7일
댓글: AHRAZ 2024년 2월 9일
There is a model (2022b) containing custom code, implemented as S-Function Builder block. The block has one output of "bus" type. When i trying to generate code (system target file : ert.tlc, generate code only, toolchain: MSVS 2019), an error appears.
Cannot initialize the width of data type work vector 1 of 'Test_IO_22/S-Function Builder'. The data type work vector width is set to dynamically sized (-1). Initialize the data type work vector width in mdlInitializeSizes or mdlSetWorkWidths
The same example created in 2019b generates code without problems.
  댓글 수: 1
AHRAZ
AHRAZ 2024년 2월 9일
I am encountering the same error in version 2023b. How did you resolve this error.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by