STS Module
2-412
2.25
STS Module
The STS module is the statistics objects manager.
Functions
❏
STS_add. Update statistics using provided value
❏
STS_delta. Update statistics using difference between provided
value and setpoint
❏
STS_reset. Reset values stored in STS object
❏
STS_set. Save a setpoint value
Constants, Types, and
Structures
struct STS_Obj {
LgInt num; /* count */
LgInt acc; /* total value */
LgInt max; /* maximum value */
}
Note:
STS objects should not be shared across threads. Therefore,
STS_add, STS_delta, STS_reset, and STS_set are not reentrant.
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the STS
Manager Properties and STS Object Properties headings. For
descriptions of data types, see Section 1.4,
Module Configuration Parameters
Instance Configuration Parameters
Name
Type
Default
OBJMEMSEG
Reference
prog.get("DARAM")
Name
Type
Default (Enum Options)
comment
String
"<add comments here>"
previousVal
Int32
0
unitType
EnumString
"Not time based"
("High resolution time based",
"Low resolution time based")
operation
EnumString
"Nothing" ("A * x", "A * x + B",
"(A * x + B) / C")
numA Int32
1