When you need to graphically display when a variable changes levels.
Where to Find the Model Object
The following model object can be found in the model objects directory:
- Visual Indicator \ Wip Traffic Light, Horizontal
- Ease of Use: Easy
- Ease of Modification: Moderate
How to Use the Model Object
- Open Your Model: Open your model or create a new blank model.
- Insert the Model Object into Your Model
- Locate the model object Wip Traffic Light, Horizontal and select the insert button.
- 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.
- Define Values
- 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.
- In the scenario parameters dialog, add name of the variable you want to track in the “default value” field for the variable s_Variable1.This 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.
- Completion: The model object is now integrated into your model, you should now be able to save and then simulate the model.
- v_Tracker1: Do not change. Is used transmit when to change colors. Do not change this variable.
- s_Max_Green_Level: User input required. The maximum value still within the green.
- s_Max_Yellow_Level: User input required. The maximum value still within the yellow. Anything over this level is red.
- s_Variable1: User input required. The variable name you want to track.
- 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.
- 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.
- 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.