Using the Simulink to Simcenter Amesim Interface > SL2AMECosim advanced topics
Known limitations
This section should help you working around the few SL2AMECosim limitations.
Data typing
Due to the reuse of the generated code in Simcenter Amesim, all interfaced data must be of type double. See Preparing the Simulink model. Note also that the interfaced data must be scalar (this limit might be removed in future versions).
This applies to inputs and outputs to the model - you must ensure that the data type is double on the input and output blocks. Parameters and internal variables can be of integer types, illustrated by the example below where the gain in the gain block is of integer type. The generated code will translate integer type (for example uint8, int8, int16 etc.) parameters into Simulink to integer parameters in Simcenter Amesim. Floating type parameters (single and double) will be mapped to Simcenter Amesim real parameters.
Note that no special type limit check is made on integer parameters. As a consequence it is possible to set an int8 parameter to values exceeding the range [-127:127], the results are not defined.
As Simcenter Amesim variables can only be of type double, all variables in the Simulink model will be converted to double. This can (in some extreme cases) cause round-off issues.
External mode
External mode is an RTW feature that enables the user to control the code execution with a GUI, like the Simulink model graphical interface.
This has been disabled for SL2AMECosim.
Data logging
In a Simulink model, you can specify that you want to save data, such as inputs, outputs and states to the workspace (or disk). This feature has been disabled for SL2AMECosim. Simcenter Amesim proposes a similar one, and gives access to those variables.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Simulink/Known_limitations · retrieved 2026-07-17