fmi-blockset - small

The FMI Blockset supports running FMI compliant models in both Simulink and Microsoft Excel.

FMI Blockset for Simulink

The FMI Blockset for Simulink® provides support for the Functional Mock-up Interface (“FMI”)  open standard in Simulink.  This means that models that are compiled by third party tools such as Dymola, CATIA DBM and many more can be imported and used in Simulink.  Models that are compiled to be compatible with this standard are known as Functional Mock-up Units (“FMU”).

Simulink model containing and FMI block and associated editor

The FMI standard defines two interfaces: one for model exchange; and one for co-simulation. The FMI Blockset currently supports the FMI 1.0 Co-simulation interface and the FMI 2.0 Model Exchange and Co-simulation interfaces.

When using the Co-simulation interface, this means that the solver built in to the FMU is used to simulate that model and the Simulink solver is used to simulate the Simulink part of the system with the two systems exchanging data at discrete times. The advantage of this is that appropriate solvers can be used for both parts of the model improving the overall simulation performance.

When using the Model Exchange interface, the Simulink solver is used to handle the complete model i.e. the FMU equations and the Simulink model.  This allows variable step solvers to be used and has the advantage that a single solver is used for the entire model.

FMI Blockset for Excel

The FMI Blockset for Excel allows FMU’s that are compliant with the FMI 2.0 Co-simulation interface to be simulated from within Microsoft Excel®.  Using this add-in enables an FMU to be selected and configured within Excel using the FMI Blockset interface.  After making a number of parameters available in Excel, multiple cases can be configured and simulated to run parameter sweeps, sensitivity studies, etc.  For each simulation case, a new spreadsheet is added to the Excel workbook to capture the results from that simulation.

FMI Blockset For Excel

Parameter Editors

Where structured naming is used within the FMU, this is used by the editor in to generate the parameter structure as shown above.  Each group of parameters is denoted by a folder and each parameter is shown by name with an icon representing its base data type (Real, Integer, Boolean, Enumeration and String).

Clicking on a parameter name shows the details contained in the FMU and allows the value to be modified.  If unit conversions are defined in the FMU these are also available.  For vector and matrix parameters an Edit button is shown that gives access to an appropriate editor with a plot of the data.  Through this editor new maps can be loaded from csv and Matlab binary files provided the dimensions of the vector or matrix are not changed as these are fixed in the FMU.

Matrix Editor

Load and Save Parameter Sets

The configuration and current parameter settings can be saved from the editor in XML format.  This format is defined in the FMI standard.  When saving the current configuration as a setup, a new XML file is created outside the FMU rather than modifying the model descripton file provided in the FMU.  These saved setups can include additional notes documenting the changes that have been made from the original FMU parametisation.

You can also load setup’s from these XML files with the editor performing checks to make sure that the setup you are loading matches the FMU you have currently loaded.

Further information

For further details on the FMI Blockset for Simulink you can download this brochure.  If you would like to try out the FMI Blockset then please contact sales [at] claytex.com.

Discover Products