Potential conflicting usages of identifier error in code generation for a reusable function
조회 수: 29 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2020년 4월 29일
편집: MathWorks Support Team
2024년 6월 4일
I am attempting to generate code for a library block that is reused in multiple models in a model reference hierarchy. Why am I getting the error 'Potential conflicting usages of identifier'?
Potential conflicting usages of identifier '<identifier_name>': a global identifier from '<model_reference_A>’. and a global identifier from '<model_reference_B>'
This conflict may be resolved by either increasing the maximum identifier length on the Identifiers pane of the Configuration Parameters dialog box or by changing the name of the conflicting identifier.
채택된 답변
MathWorks Support Team
2024년 6월 4일
편집: MathWorks Support Team
2024년 6월 4일
A reusable library subsystem ("Reusable function" is selected for the "Function packaging" parameter) with multiple instances in a model or model hierarchy can have more than one function interface. Each function interface corresponding to the same reusable library subsystem must have a unique name or there will be a conflicting identifier. For unique naming, reusable function names have a checksum appended to the reusable library subsystem name. However, some settings for "Function Name Options" and "File Name Options" will prevent the code generator from appending the checksum.
The simplest resolution is to use "Auto" for the function and file name options. For other options that allow customization and still generate unique identifiers, see our documentation on reusable library subsystems.
Library-Based Code Generation for Reusable Library Subsystems:
Generate Reusable Code from Library Subsystems Shared Across Models:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!