AmesimKnowledge

Using the Simcenter Amesim to Simulink Interface

Using more than one interface block

interface icons using more than one

Figure 38: Using several interface blocks

Make sure you give each port a unique name.

When the S-Function is created, Simcenter Amesim will concatenate all the inputs and concatenate all the outputs. To see how this is done, select Interfaces > Interface status status. A dialog box (figure below) shows how the ports are arranged.

Figure 39: Concatenated inputs and outputs

To illustrate the use of multiple interface blocks we will use the example from Constructing the model in Simcenter Amesim, the difference being that whereas previously the road profile and wheel displacement were supplied by Simcenter Amesim, now they are supplied by Simulink:

Note

If you place multiple interface blocks on your sketch, remember that editing them afterwards has an impact on the model in Simulink. The order in which you place them on the sketch dictates the order of the ports in Simulink. If, for example, in the model above the three blocks were placed in order from top to bottom, the inputs and outputs in Simulink reflect this fact. Should you decide to then edit the topmost interface block, this would change the ordering of inputs and outputs in Simulink, and the edited block would in effect become the last block in the model, leading to problems in the Simulink model.

To avoid this type of problem, you can simply create one block for the inputs, and one for the outputs. This way you can easily control the order of the variables.

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