I am getting the following error while generating code from MATLAB Simulink,Potential conflicting usages of identifier '': the "signal connected to output Port 1 and datatype
조회 수: 11 (최근 30일)
이전 댓글 표시
When I try to generate the code from my simulink model, I am getting a potential conflicting usage of identifier for a signal name and a bus data type. I tried increasing the Maximum identifier length upto 256 but still I am getting the same error. Is there any other solution for this problem or is there a way to ignore the error?
댓글 수: 0
답변 (1개)
Ayush
2023년 5월 31일
The error you are facing is probably due to the fact that there is a conflict between a signal name and a bus data type identifier. Simply increasing the maximum identifier length may not resolve the issue. Here are a few things you could try to resolve the conflict:
1. Rename conflicting signals/buses: You could try renaming the signal or bus data type to something that doesn't collide with any signal names.
2. Use the short name for signal/buses: you can try using shorter, simpler names for your signals and/or bus objects. This can often help avoid naming conflicts.
3. Use a namespace: If you are working on a large-scale project with many namespaces, consider using namespaces to avoid naming collision.
If none of these solutions help you resolve the issue, kindly share the model so that I can reproduce it on my end and investigate it.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!