From: Alexandru Voica on
Hello.

I have a small problem with a basic Simulink module.

I have put together a system where I receive data from a C++ client through UDP. I have used the udpip S-function blocks from here:

http://www.mathworks.com/matlabcentral/fileexchange/12021

I also have a STOP Simulation block that is enabled after a specific number of seconds.

The problem appears when I try to re-start the simulation by pressing the "Start simulation" button. The UDP Server outputs the "Cannot bind" message and does not work anymore.

How can I stop the simulation while being able to restart it, without having to open/close the whole Matlab environment each time?

Thank you,
Alex Voica.