- 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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Himanshu
el 14 de Dic. de 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!
Ver también
Categorías
Más información sobre Create Standalone FMU en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!