Using the Simcenter Amesim to Simulink Interface > Importing into Simulink Without Using the Simcenter Amesim Library
Importing a Simcenter Amesim Model for the Standard Interface
Once again, we strongly recommend that you start MATLAB from Simcenter Amesim to automatically inherit the environment. Simcenter Amesim models must remain open in Simcenter Amesim during the process.
Assuming that the Simcenter Amesim model is named skyhook, the best way to create the S-Function used to import the Simcenter Amesim model is to use a dedicated MATLAB script amecreatemask such as:
The first parameter is the name of a Simulink submodel which does not yet exist. The second parameter is the Simcenter Amesim model name.
The result of the script is the creation of a Simulink submodel named SimulinkImport which includes the S-Function to import the Simcenter Amesim model.
The name of the input and output are not set yet. To do this, it is necessary to run the submodel in Simulink once. After this dummy simulation of the submodel, the name of IO is set on the S-Function.
The run and global parameters are available by double clicking on the S-Function.
S-Function Parameter Description
Using the model hydraulic presented in Importing Black-box models into Simulink using amecreatebbmask command, the S-Function produced after the call to amecreatemask is shown below; we also present the S-Function parameters created by the script for this particular example. The mask parameters are presented in the Figure 70 figure.
Figure 69: S-Function Parameter Description
Figure 70: S-Function Mask Parameters after call to amecreatemask
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Simulink/Importing_an_AMESim_Model_for_the_Standard_Interface · retrieved 2026-07-17