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

17 次查看(过去 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?

回答(1 个)

Ayush
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.

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by