Let's make the model more realistic by adding some periodic deposits, in this case, a payday check every 14 days. To do this we will need to add two elements that are part of the basic GoldSim framework to the model: a Time Event, and a Discrete Change.
First, we need to return to Edit Mode (press F4 and select OK). To insert the Timed Event element, right-click in the graphics pane, and select Insert Element|Events|Timed Event from the context menu. A Timed Event element will be inserted and its property dialog will be displayed:
Change the element's name to "Pay_Day". Timed Events produce discrete signals based on a specified rate of occurrence. They can generate random or regular events. Pay_Day will be a regular event with a rate of occurrence of once every 14 days:
Next we need to specify the consequence of the Pay_Day: the generation of a deposit of a particular quantity. We do this by using a Discrete Change element, which is inserted by right-clicking in the graphics pane, and selecting Insert Element|Events|Discrete Change from the context menu:
Change the element's name to "Deposit_Check". Specify Display Units of $, and enter a value of 1000 $ (the amount of the pay check). Leave the Instruction as Add. Finally, we need to specify that Deposit_Check is triggered whenever the Pay_Day occurs. To do this, press the Trigger… button. In the trigger dialog that is displayed, press the Add button, and then in the Trigger Definition field, enter "Pay_Day":
Close this dialog as well as the Discrete Change dialog.
Finally, we need to tell GoldSim where the check is deposited. To do this, double-click on the Bank_Account, and enter "Deposit_Check" in the Deposits input field:
After you close the Bank_Account, your model should look something like this: