Effacer les filtres
Effacer les filtres

Show the simulation results when starting fmi co-simulation

14 vues (au cours des 30 derniers jours)
Camork
Camork le 1 Nov 2019
Réponse apportée : Yukthi S le 15 Juil 2024 à 11:50
How can I show the vars result when starting the co-simulation process from the FMU exported by Tool-Coupling tool ?

Réponses (1)

Yukthi S
Yukthi S le 15 Juil 2024 à 11:50
Hi Camork,
From my understanding, you were trying to see the co-simulation results of an FMU exported by Tool-Coupling tool, in Simulink. Since the MATLAB release you were using was not mentioned, I assumed that you were referring to the latest release.
To proceed, follow the steps outlined below:
Step-1: Export the model into an FMU file making sure it has all necessary variables for co-simulation.
Step-2: Import the FMU into Simulink using “FMU (Simulink Extras/FMU Import)” block.
The below documentation can help to know more about “FMU” block:
Step-3: Double click on the block and specify the path to FMU file.
Step-4: Configure the parameters specified in the below documentation as per requirements.
Step-5: Connect a Display block or a Scope block to the outport of FMU block and run the model.
The example provided below can also be referred to:

Community Treasure Hunt

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

Start Hunting!

Translated by