AmesimKnowledge

Hybrid Co-simulation with the usercosim interface > Use of the usercosim interface

How do you create a slave model?

First, create a Simcenter Amesim system with sensors for the variables you have an interest in:

Figure 24: Simcenter Amesim system with sensors

You are now ready to create the interface blocks. If you have already used the Simcenter Amesim-Simulink interfaces you will recognize the procedure. The only difference comes from the selection of "UserCosim".

Figure 25: Creating an interface icon

It is possible to create several blocks – it is a good idea to separate inputs from outputs.

Figure 26: Input setting

Figure 27: Output setting

Figure 28: Hybrid Co-simulation slave

Now compile this model. A dynamic library is created and can now be imported by the master. Enter Simulation mode. Do not forget to use the File

Write Auxiliary File commands to generate the parameter data file.

Note

In most cases, models containing interface blocks cannot be run as they are. However, it can be useful to perform some basic checks such as open-loop simulations to see if the configuration of your model is correct; for example to check whether it can locate all its resources (typically tables) and that it initializes correctly. See next section for more detail on this topic.

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