Related Topics and Links:

Flowchart Block Types

Counter Blocks

A counter block increments its value by a specified amount each time the simulation passes through it, and then passes the recorded value to the next block in the flowchart. It may have multiple incoming and outgoing paths. The following example shows a counter block that records the number of loops that it goes through. The counter block passes its tally to the conditional block that stops the loop when the condition is met.

The following picture shows the Block Properties window of the counter block in the example. In this case, the Start Value field indicates that the count starts at 0, and the Increment By field indicates that the start value increments by 1 every time the simulation passes through the block.

The Counter Type field allows you to configure how the block will keep count. There are three options:

In addition to passing the recorded value to the next block in the flowchart, the counter block may also be configured to store its output in a variable. The Storage Variable field displays the name of the storage variable, if any.

Advanced Configurations

 

© 1992-2018. HBM Prenscia Inc. ALL RIGHTS RESERVED.

E-mail Link