Using the Simcenter Amesim to Simulink Interface > Importing into Simulink Without Using the Simcenter Amesim Library
Importing a Simcenter Amesim Model for a Standard Interface Using a Black-Box
Once again, it is strongly recommended to 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 amecreatebbmask such as:
The first parameter is the name of a Simulink submodel that does not exist yet. The second parameter is the Simcenter Amesim model name.
The result of the script is the creation of a Simulink submodel named SimulinkBB which includes the S-Function that imports the Simcenter Amesim model.
The name of the input and output are not set yet. To do so, it is necessary to run the submodel in Simulink once. After this dummy simulation of the submodel, name of the IO is set on the S-Function.
The 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 with a co-simulation interface, the S-Function produced after the call to amecreatebbmask is shown in the following figure. We also present the S-Function parameters created by the script for this particular example. The mask parameters are presented in the Figure 75 figure.
Figure 74: S-Function Parameters after call to amecreatebbmask
Figure 75: S-Function Mask Parameters after call to amecreatebbmask
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Simulink/Importing_an_AMESim_Model_for_a_Standard_Interface_Using_a_BlackBox · retrieved 2026-07-17