MATLAB interface
You can export models from the Dymola Behavior Modeling app to formats suitable for Simulink and Simulink Coder. Using the Functional Mock-up Interface (FMI) you can also export and import models from and to Simulink.
Export to Simulink
You can export models to the MATLAB format suitable for use with Simulink simulation tools.
The export to Simulink function allows models developed in the Dymola Behavior Modeling app to be simulated in MATLAB/Simulink.
You need a Systems Simulink Export license to use the export to Simulink function.
When you have exported the files from the Dymola Behavior Modeling app, the following is required to use them with Simulink:
- A Simulink license
- A MATLAB/Simulink release. See the Program Directories for supported versions. A 3DPassport is required to display that page.
Only Visual Studio C++ compilers are supported to generate the DymolaBlock S-function. The LCC compiler is not supported.
Export for Use with Simulink Coder
You can export models to a format suitable for use with Simulink Coder simulation tools.
The export to Simulink function allows models developed in the Dymola Behavior Modeling app to be used with Simulink Coder for Hardware-In-the-Loop Simulation. The supported targets are the dSPACE (the DS1005 and DS1006 platform, the MicroLabBox platform, and the SCALEXIO platform), and the xPC targets (Simulink Coder is a code generator for Simulink).
You need a Systems Simulink Export license and a Systems Real Time Execution Export license to use the export to Simulink function to produce files suitable for use with Simulink Coder.
When you have exported the files from the Dymola Behavior Modeling app, the following is required to use them with Simulink Coder:
- A Simulink license
- A MATLAB/Simulink release, and Simulink Coder
- dSPACE or xPC Target
Handling Simulink Using FMUs
You can export FMUs from Simulink and then import them into the Dymola Behavior Modeling app. This allows you to simulate Simulink models in the Dymola Behavior Modeling app. You can also import and embed FMUs into your Simulink models.
See FMI Support in Simulink below.