Potential conflicting usages of identifier

65 次查看(过去 30 天)
Hello, I am working on an integration model for code generation which by design has various instances of the same signa in different unconnected subsystems. I am getting a lot of errors of "Potential conflicting usages of identifier" which are due to the automatic propagation of signal names.
My question is:
1-can I disable automatic signal label propagation
or
2-can I disable "Potential conflicting usages of identifier" errors?
Thanks.

回答(1 个)

Ayush Modi
Ayush Modi 2024-1-1
Hi,
As per my understanding, you are getting a lot of "Potential conflicting usages of identifier" errors. As a solution you would like to know if it is possible to disable automatic signal label propagation or disable "Potential conflicting usages of identifier" errors.
You can disable both these options:
  • “Automatic signal label propagation” can be disabled by selecting the signal line, then right-clicking and choosing "Properties." In the Signal Properties dialog, uncheck "Signal name must resolve to Simulink signal object" to prevent Simulink from automatically propagating the name.
  • “Potential conflicting usages of identifier” errors can be disabled by “configuring model Advisor Checks”. Open your Simulink model. In the Simulink toolbar, go to Analysis > Model Advisor. Select the settings icon or go to Settings. In the Model Advisor Configuration Editor, you can disable checks related to identifier conflicts.
Alternatively, you can adjust the naming rules for generated identifiers to reduce the likelihood of conflicts by opening the configuration parameters dialog, navigate to Code Generation -> Identifiers. Adjust the settings for identifier format control to ensure unique naming.
I hope this resolves the issue you were facing.

类别

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

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by