Borrar filtros
Borrar filtros

Creating error/warning message in Simulink

29 visualizaciones (últimos 30 días)
Ege Can Koçak
Ege Can Koçak el 2 de Jun. de 2021
Respondida: Pavan Guntha el 30 de Ag. de 2021
Hello all,
I am kinda new in MATLAB/Simulink, can someone help me about;
How to create a error/warning message in Simulink model to user when s/he writes insufficient (out of my simulation range) values in the model ?

Respuestas (1)

Pavan Guntha
Pavan Guntha el 30 de Ag. de 2021
Hello Ege,
You could use 'Assertion' Simulink block to create errors/ warnings when a certain condition is not met. You can have a look at the following example:
As illustrated in the figure below, an assertion failure occurs since the data '23' doesn't meet the required condition 'Data <= 20'.
You can mention the error/ warning message to be displayed in the block property as shown below:
You can also have a look at the following documentation page for more details on Assertion: Documentation.
Hope this helps!

Categorías

Más información sobre Test Model Components en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by