How to Generate an FMU from MATLAB and PowerFactory for Co-Simulation?

S
support · Jul 24, 2026 · 5 views
Question
How to export a MATLAB Simulink model as a Functional Mock-up Unit (FMU) using FMI standard for co-simulation with DIgSILENT PowerFactory?
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 26, 2026

To export a Simulink model as an FMU 2.0 Co-Simulation unit:

  1. Install Simulink Compiler and FMI Kit for Simulink.
  2. Open your model and configure input/output ports using In1 and Out1 blocks.
  3. In MATLAB Command Window, execute export command:
    exportToFMU('my_simulink_model', 'FMUType', 'CoSimulation', 'FMIModuleVersion', '2.0');
    
  4. In DIgSILENT PowerFactory, open DSL / FMI Model Definition, import the generated my_simulink_model.fmu file, and map grid signals.
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!