MESSAGE

Use this forum to post Vensim related questions.
Post Reply
rolando
Member
Posts: 22
Joined: Wed Dec 08, 2004 6:11 pm

MESSAGE

Post by rolando »

Hi,

I'm using the MESSAGE function to give some warns when a variable gets a specific value.
the question is: where I can display the scrolling list of warnings, because it doesn't appear.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

If you call message with a warning value (1) then you need to have warning set to display - otherwise nothing will appear. Go to Tools>Options>Settings and set warnings to display.
rolando
Member
Posts: 22
Joined: Wed Dec 08, 2004 6:11 pm

MESSAGE

Post by rolando »

Hi,

I check in Tools>Options, and the option is check in Display. But it doesn´t work.
This is the way I'm calling it:

if then else (P1<0, MESSAGE('Need 1',1) , MESSAGE('Need 0',1))

if I use another option in the display parameter, everything works fine, except in the option 1.

Thank's

[Edited on 2-10-2005 by rolando]
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

I just tried and it works fine for me. Make sure you are using 5.4b.
rolando
Member
Posts: 22
Joined: Wed Dec 08, 2004 6:11 pm

How can I....

Post by rolando »

Hi,

Thank's for the last post, it help's.

Now the MESSAGE is working fine with the display option 1. But now, I just want to know if I can display the value of a variable in the list of warnings. For example:

WARNING: the process 5 is not working

but in other run, the process 5 is working fine, but the process 6 not, so I need to display.

WARNING: the process 6 is not working.

thank's.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

just surround the variable with the value in \/ as in 'The time is \Time/'
rolando
Member
Posts: 22
Joined: Wed Dec 08, 2004 6:11 pm

Thank's

Post by rolando »

Thank's.
Post Reply