- 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.
[Error - exportToFMU] Error: The requested fixed identifier 'rtP_mySignal' is already registered.
4 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
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:
Additionally, you can refer the following example that shows how to export Simulink component to standalone Co-Simulation FMU 2.0.
Hope this helps!
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!