Defining Messages for Building Blocks

Use the Message tab to alert a user to certain conditions during a simulation. When the building block's value meets a specified condition, a message will appear.

Message Types

You can present any of the following messages:

Why use messages?

As the simulation progresses, you can:

Message stakes

You can specify more than one messages for a given variable; each message can be triggered at a different threshold, and each stake can trigger one or mere messages of different types.


Message stakes

Message triggers are represented by message stakes. Each message stake:

Usage examples

The following messages could be defined for the same variable (which can be a stock, flow, or converter).

Notes: All visible messages (text, images, and video) appear in a floating message window.

If you assign a sound to a text message and there is no text, the simulation plays the sound and pauses, but no visible message box will appear.

Defining Messages

To define a message, you need to complete the following:

  1. Select a variable to attach the message(s) to.
  2. Create one or more message stakes. Each stake specifies a trigger point for a message.
  3. Specify a value range in which the message can be triggered, and move the stake to the correct location within the range.
  4. For each stake, specify the conditions required to trigger the message, the message type, and the message's content.

Tip: You can suppress all message posting for a model by selecting the Disable Posters check box in Model Settings.

To define a message for a building block:

  1. In the Stella window, select the building block (stock, flow, or converter) you want to define a message for.
  2. Select the Message tab.
  3. At the top of the tab, click in the message stake box to add a message threshold stake.

  4. Use the options beneath the message stake box to define a threshold for when the message should be posted.

    For example, "Post the message when the variable's value becomes > 1000." For detailed descriptions of these options, see Message Tab.
  5. With the message stake still selected, use the options under Message Properties to select the type of message you want to appear: Text Message or Media Message.

    Note: If you selected > or < in step 4, the message stake will have a double-sided arrowhead (). Each side can have a different set of messages. Click a side to highlight it, then define its message type and content.

  6. Use the rest of the options under Message Properties to define the content of the message (text, image, movie, sound, and/or navigation). For detailed descriptions of these options, see Message Tab.
  7. To define additional messages for the same message stake (for example, to have a different message appear the second time the message threshold is met), click the Message 1 box, then select Add New. Use the options in the Message Properties section to define the second message. Repeat this step to define more messages for the message stake as needed.
  8. Use the options under Frequency to specify how often per simulation run the message should appear.
  9. When you're finished defining the message stake, click , in the bottom-right corner of the Properties panel.
  10. To create a new message stake for the selected variable, repeat steps 3-9.
  11. To define messages for a different variable, select the variable in the model diagram, then repeat steps 2-10.

To Edit a Message

You can edit the definition of any message you've already defined.

  1. In the message stake box, click the stake for the message that you want to edit. If the message stake has a double-sided arrowhead (), click the side you want to edit.
  2. Edit the Message Properties for the selected message. For detailed descriptions of these options, see Message Tab.
  3. When you're finished, click , in the bottom-right corner of the panels.

To Delete a Message

You can delete a message stake (and all its associated messages), one or more messages defined for a single message stake, or all messages defined for a variable.

Concept Link IconSee Also