×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

window pop up

window pop up

window pop up

(OP)
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.

RE: window pop up

Yes, there is. Or more accurately, when a condition is satisfied you can enable a block to display a box with a message in it.

Here's the pseudo code

If condition==satisfied
then
MSG$="OMG it works!!!!"
messagebox(MSG$)
else
endif

This may need some banal refinements, but frankly let's face it, you should have done Business Studies.






Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

RE: window pop up

(OP)
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 message if the simulation has stopped because of that value exceeding the limit imposed. (This model is going to be used by people when I'm not working here anymore so I won't be able to explain them.)
My question is if there is such a block in Simulink that when that condition is satisfied, a window or some kind of message pops up saying why the simulation has stopped. I would put this block parallel to the STOP block.

Would you GregLocock (or anybody else) be able to help again? Thank you.
...and please, don't be misrespectful.

Cheers

RE: window pop up

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close