Previous Topic: Business Logic Scripting ExamplesNext Topic: Case Study 13: Dynamic Component Group Handling


Case Study 12: Using Counter Logic to Calculate Number of Failures

The following example calculates the number of failures that occurred within a given calculation period. This formula and the methods used to implement it can be taken as an example of a formula that is required wherever it is necessary to calculate something.

The following calculation assumptions are used:

In order to tally the failures that occurred during the calculation period it is necessary to store a periodic counter variable and also a variable that stores the system status. Since redundant Event information may be received (i.e. An 'Up' event followed by another 'Up' event), it is also necessary to count the number of locations where there was a change of the system status from "Up" to "Down" and not to count every time a "Down" event is received as this may be a redundant Event that represents a failure that has already been counted.

The following figure graphically depicts counting system Up and Down times.

Important points that should be considered: