フィルターのクリア

[Error - exportToFMU] Error: The requested fixed identifier 'rtP_mySignal' is already registered.

4 ビュー (過去 30 日間)
Wonjin Shin
Wonjin Shin 2023 年 11 月 16 日
コメント済み: Wonjin Shin 2023 年 12 月 19 日
Hello,
I am working on generating FMU standalone file from a simulink model(having referenced models inside).
While I was running "exportToFMU('myModel', 'FMUVersion', '3.0', 'FMUType', 'CS'), I received a following error.
Error: The requested fixed identifier 'rtP_mySignal' is already registered.
Here, it seems the error raised during code generation of each referenced model, and I am not sure what it means by "is already registered" and how to resolve it in the simulink model.
Could anyone please help me on this?

回答 (1 件)

Himanshu
Himanshu 2023 年 12 月 14 日
Hey Wonjin,
I understand that you are encountering an error while running the command "exportToFMU('myModel', 'FMUVersion', '3.0', 'FMUType', 'CS')”.
The error indicates that the identifier 'rtP_mySignal' is already being used elsewhere in the model or within one of the referenced models. Please try out the following to resolve the issue:
  • Check for Duplicate Identifiers: Look for any variables, parameters, or constants named 'rtP_mySignal' within your main Simulink model and its referenced models. There might be a clash due to multiple instances of this identifier.
  • Check Masked Subsystems/Blocks: If 'rtP_mySignal' is defined within a masked subsystem or block, ensure that it is not duplicated within the masked parameters or settings.
Additionally, you can refer the following example that shows how to export Simulink component to standalone Co-Simulation FMU 2.0.
Hope this helps!
  1 件のコメント
Wonjin Shin
Wonjin Shin 2023 年 12 月 19 日
Thanks for your answer! I have resolved the error by checking multiple instances of the signals.

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

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by