필터 지우기
필터 지우기

Why do I not get a reusable function for a library subsystem

조회 수: 3 (최근 30일)
vishwajit jadhav
vishwajit jadhav 2019년 10월 4일
답변: Shivangi Gupta 2021년 8월 27일
Under what circumstances, embedded coder shall not generate reusable code for my library blocks. I have made the subsystem with 5 inputs and 1 output as library with the setting " Atomic subsystem-> Reusable Function-> Function Name" as custom function name. The input and output data types of the block is same at all places in my model. Basically I have hardcoded the datatypes at input and output port of the block to ensure no datatype conflict takes place. But stil at some places I see reusable function while in some areas different function getting generated for the same block. I am using Matlab2017a

답변 (1개)

Shivangi Gupta
Shivangi Gupta 2021년 8월 27일
There are limitations for Reusable Subsystems to be generated uniquely. To determine reusability of the subsystem code, the code generator performs a checksum to determine if subsystems are identical. More information about the limitations can be found in the following documentation page:
To determine what cause the code generator the generate multiple functions, please see the following documentation page:

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by