Potential conflicting usages of identifier 'XXXXYY': a data type, and the name of a top level function for the model 'XXXX'

320 次查看(过去 30 天)
I'm getting this error when trying to build an arxml generated model.
Potential conflicting usages of identifier 'XXXXYY': a data type, and the name of a top level function for the model 'XXXX'

回答(1 个)

Ayush
Ayush 2023-8-29
The error message you received indicates a potential conflict in the usage of the identifier 'XXXXYY' within your model 'XXXX'. The conflict arises because 'XXXXYY' is being used as both a data type and the name of a top-level function in the model.
Here is the workflow to avoid such errors:
  1. Check for naming conflicts: Make sure there are no other variables, functions, or data types with the same name that could cause conflicts.
  2. Rename the conflicting identifier: To resolve the conflict, you need to rename either the data type or the top-level function.
  3. Update dependent components: If the renamed identifier is used in other parts of your model, such as subsystems or referenced models, make sure to update those components as well to reflect the new name.
  4. Rebuild and test: After making the necessary changes, rebuild your model and test it to ensure that the conflict has been resolved and that the model functions as expected.
Thanks,
Ayush Jaiswal

类别

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

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by