Azzera filtri
Azzera filtri

Potential conflicting usages of identifier

65 visualizzazioni (ultimi 30 giorni)
João Araújo
João Araújo il 16 Apr 2022
Risposto: Ayush Modi il 1 Gen 2024
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.

Risposte (1)

Ayush Modi
Ayush Modi il 1 Gen 2024
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.

Categorie

Scopri di più su Component-Based Modeling in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by