- Open the Code Mapping Editor: https://www.mathworks.com/help/rtw/ref/codemappingseditorc.html#d123e75008
- Data Defaults: https://www.mathworks.com/help/rtw/ref/codemappingseditorc.html#d123e75302
'Potential conflicting usages of identifier' when using an output signal as feedback
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a large integrated model that uses model references inside triggered subsystems. The input and output signlas are handled through bus elements. One of the outputs generated by one of the triggered subystems is connected to a 'Bus Element Out', but is also fed back as an input to one of the other triggered subsystems, as shown below.

Based on our architecture and design standards, these must have the same name. However, when I go to compile (CTRL+D), I get an error saying there's conflicting usages of that identifier:
Potential conflicting usages of identifier 'EnableComplete': the signal connected to output port 1 of the block '<model1HierarchyRemoved>/EnableComplete', and the signal connected to output port 1 of the block '<model2HierarchyRemoved>/EnableConditions'
How do I resolve this issue?
0 comentarios
Respuestas (1)
Vinay
el 15 de Mayo de 2025
Hello @Ron Bates
The “Exported Global” storage class cannot be used for signals in different referenced models when the signals are actually representing different signals.
In order to solve this issue, change the Storage Class Code Mapping in the Data Defaults tab for the Inports in all Referenced Models to 'Default'.
For more info on how to do this, check the following documentation pages:
If a different setting is desired for specific Inports, specify the desired Storage Class mapping in the Inports Tab.
If Storage Class 'Auto' is selected, first make sure that the signals coming out of the specific Inports are resolved to a Simulink signal object.
I hope this helps.
0 comentarios
Ver también
Categorías
Más información sobre Model References en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!