zcv variable Potential conflicting usages of identifier

6 ビュー (過去 30 日間)
Loubna Ibnou Fairouze
Loubna Ibnou Fairouze 2020 年 6 月 26 日
編集済み: Martin Lambrecht 2024 年 5 月 15 日
Hello,
What's a ZCV variable ? I am trying to generate code from a model that contains several referenced models, and I am getting this error:
Potential conflicting usages of identifier 'ZCV_pidController_T': a global identifier from 'speed_controller', and a global identifier from 'current_controller' This conflict may be resolved by either increasing the maximum identifier length on the Identifiers pane of the Configuration Parameters dialog box or by changing the name of the conflicting identifier.
I tried increasing the identifier max length it did not work
  2 件のコメント
Vivek
Vivek 2024 年 5 月 15 日
Whether you got the solution for this error. I am also getting this error.
Martin Lambrecht
Martin Lambrecht 2024 年 5 月 15 日
編集済み: Martin Lambrecht 2024 年 5 月 15 日
Hello,
same here. I'm using a library which is configured as reuseable in two referenced models. The generated code for both reusable functions is identical, but placed inside the folder for each referenced model. That's why I'm getting the error and this is understandable.
But I see no reason, why the potential conflicting definitions are not moved to the header-definition of the reusable function (which is empty so far) and the whole reusable function (.cpp, .h) is placed in shared_utils folder. Everything is configured that is should work like this. The error message gives no information why this is not possible.
The only difference in the structures, which are used by the reusable function, but defined in the header of the referenced model is, that the order of the definitions is not the same.
Would be nice to get help with that. @MathWorks Support Team. If you need more informations, please contact me.
Thank you in advance.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by