Wip Traffic Light, Horizontal

When you need to graphically display when a variable changes levels.

Wip Traffic Light, Horizontal model image

Where to Find the Model Object

The following model object can be found in the model objects directory:

  • Visual Indicator \ Wip Traffic Light, Horizontal

Difficulty Level

  • Ease of Use: Easy
  • Ease of Modification: Moderate

How to Use the Model Object

  1. Open Your Model: Open your model or create a new blank model.
  2. Insert the Model Object into Your Model
    1. Locate the model object Wip Traffic Light, Horizontal and select the insert button.
    2. Move the cursor to the point of insertion and left mouse-click. The upper left corner of the model object will be inserted at the location of the mouse-click.
  3. Define Values
    1. In the scenario parameters dialog, change the maximum level for a green display and the maximum level for yellow display. Red will automatically be set if your variable goes above the yellow max.
    2. In the scenario parameters dialog, add name of the variable you want to track in the “default value” field for the variable s_Variable1.define scenarios in Wip Traffic Light, HorizontalThis object can only be used to track one variable at a time. Each additional variable that you want to track need to have its own object. This object may be used multiple times in your model. When used more than once, the following will need to be changed: 1. The Max Green Level and Max Yellow Level for the variable 2. The name of the variable you want to track in the default value for s_Variable1 or 2 or 3. 3. The graphic names used in the action logic. The original graphic name for the green light is “green1”. The original graphic name for the yellow light is “yellow1”. The original graphic name for the red light is “red1”. When a second model object is pasted, the graphic numbers automatically increment. “green1” will become “green2” “yellow1” will become “yellow2” “red1” will become “red2”

      This model object can be changed to use the new graphic names without actually changing the action logic. Just change scenario parameter default value to use the new graphic name. The second model object will use green2, yellow2 and red2. An example is shown below of the scenario parameters tab of the scenarios dialog.

  4. Completion: The model object is now integrated into your model, you should now be able to save and then simulate the model.

Controls Usage

Variables:

  1. v_Tracker1: Do not change. Is used transmit when to change colors. Do not change this variable.

Scenario Parameters:

  1. s_Max_Green_Level: User input required. The maximum value still within the green.
  2. s_Max_Yellow_Level: User input required. The maximum value still within the yellow. Anything over this level is red.
  3. s_Variable1: User input required. The variable name you want to track.
  4. s_Green_Graphic1: User input required. Used to pass the name of the entity to the action logic controlling which entity is used to show the green light.
  5. s_Yellow_Graphic1: User input required. Used to pass the name of the entity to the action logic controlling which entity is used to show the yellow light.
  6. s_Red_Graphic1: User input required. Used to pass the name of the entity to the action logic controlling which entity is used to show the red light.
Was this article helpful?

Related Articles

Go to Top