'Potential conflicting usages of identifier' when using an output signal as feedback

6 views (last 30 days)
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?

Answers (1)

Vinay
Vinay on 15 May 2025
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.

Categories

Find more on Model References in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!