- 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 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Himanshu
le 14 Déc 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!
Voir également
Catégories
En savoir plus sur Simulink Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!