- 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.
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Himanshu
on 14 Dec 2023
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!
See Also
Categories
Find more on Create Standalone FMU in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!