AmesimKnowledge

Using the Simulink to Simcenter Amesim Interface > Using the SL2AMECosim interface - Co-simulation Mode

Preparing the Simulink model

In most cases, the only preparation work should be to add input and output blocks to the Simulink model. These I/O blocks should correspond to the interface you want to provide in Simcenter Amesim. Note that in versions of MATLAB older than 2011a the names of the input/output ports are not exported to the Simcenter Amesim model.

One important rule (that may be eliminated in later versions) is that the input/output variables must be scalar and of type double.

Warning

Only fixed step solvers can be used (the "auto mode" is not allowed: the solver itself and its step size need to be defined before running the SL2AMECosim script).

Note

SL2AMECosim is similar to the GRT-Malloc target. Some Simulation parameters and generated code options have an effect on the generated code and its compatibility with Simcenter Amesim. The optimization and configuration hints and remarks applicable for GRT targets, which are described in The Real Time Workshop User's Guide (The Mathworks), are also applicable for SL2AMECosim.

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Simulink/Preparing_the_Simulink_model · retrieved 2026-07-17