User`s guide
Release 7.5 MADYMO Coupling Manual
Figure 9.3: Example of the S-function settings.
• The prompt is changed into ’>>’ indicating that MATLAB is running.
• Load or create the associated Simulink model, for example the pendulum shown in
Fig.
9.4, containing an S-function named madymo3d_server and appropriate parameters
shown in Fig.
9.3. Here, the MATLAB variable named ’runmad’ refers to the command
to execute MADYMO.
• Go to Simulation −→ Start in the Simulink graphical user interface to start the simula-
tion.
• Parameters or models can be altered and the simulation can be started again.
• Note that one can also edit the startup.m file by replacing the environment variable
MADHOME which the path to the madymodir
. This gives you the ability to start MAT-
LAB by clicking on the icon. It is good practice to store the startup file in the directory
where the models are located.
The coupled simulation runs until either the end time in the MADYMO model is reached, the
end time in the Simulink model is reached or the simulation is terminated by the user.
54