When Will You Need This?
When you need to display the value of a single integer variable in a large digital display.
Caution — This Model Object can only be used once in your model.
The following model object can be found in the model objects directory: Visual Indicator \ Digital Display of Integer.
Ease of Use: Moderate
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 Digital Display of Integer 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. Update Objects
1. Edit the Default Value of the s_VariableName scenario parameter to match the name of the variable you want to display. The values for these Scenario Parameters must be provided before the simulation start.
The model object is now integrated into your model, you should now be able to save and then simulate the model.
Attributes, Variables, Scenario Parameters and Scenarios Usage
1. a_Div: Do not change. The result of dividing.
2. a_Numerator: Do not change. The value of the variable.
3. a_OldRemainder: Do not change. The value of each digits previous value.
1. v_OldValue: Do not change. The variable’s previous value.
2. v_Remainder1…100000000: Do not change. The value of each digit (ones, tens, hundreds, etc.).
3. v_10s…100000000s: Do not change. Status of each position, 1 means a value is present, 0 means no value is present.
4. v_ThousandsComma: Do not change. On/off status of the comma between hundreds and thousands.
5. v_MillionsComma: Do not change. On/off status of the comma between thousands and millions.
1. s_VariableName: User input required. The name of your variable to be displayed
How Do I Build This Model Object from Start?
Each of the numerals of the digital display is a WMF graphic. These imported WMF files have be converted to shapes and changes to entities.
Positions of the digits are activities.
A single entity is scheduled (periodic arrival with zero in the Repeat Every field) into each of the positions of the display (ones, tens, hundreds, etc.).
The logic for each position of the display is independent of the others. The repeating logic (While Do) uses the NEWNAME statement to change the entity graphic to match the corresponding digit in the variable value. Thus only one entity enters each position of the clock and never exits.
Notes This model object will display the value of a single variable used in your model. It is designed to display whole numbers (integers) from 0 to 999,999,999.
Caution: Only one copy of this model object can be used per model. If you want to use multiple copies of this display object, you will need to manually modify the entity names and action logic using those names of each copy. If you need ProcessModel to make those changes for you, there will be a consulting charge. To make the changes yourself, you will first need to Ungroup the display graphic by selecting it, and clicking Arrange / Combine / Ungroup. Then move the red and black boxes to reveal the contents of the display.
If you would like to include the variable name being shown on the display, you can ungroup the display (as noted above) and edit the white text as needed. Then regroup all the objects in the display.