Metric: Number Of Writes

User Description

The Number of Writes metric is used to get information about which variables are written.

Metric Calculation

Each writing of a variable in an implementation is considered, but if the same variable is written twice in an implementation, it is only counted once.

Example

Number Of Write calculation example for IEC-61131-3 code:

iMyVariable := 1;

// Some other implementation

iMyVariable := 2;

Number Of Writes Result (for variable iMyVariable)

Number Of Writes = 1