Nevermind, I already found it after 2 days of intensive search.
In case it can be of any help to somebody, it is a block called ASSERTION. It stops the simulation, shows an error window and writes whatever message in the Command Window.
Cheers
Actually I was asking for block in Simulink, not MatLab code.
I'll try to be more specific:
I need to stop a simulation either when it finishes (obviously) or when a signal exceeds a certain value (for which I use a RELATIONAL OPERATOR block and a STOP block). It would be helpful to show a...
Hello all,
I was wondering if there existed a block in Simulink that when a condition is satisfied, a window pops up with a message I would define.
Thank you in advance.