Technical data
ASTi ACE Studio Components Reference Guide Rev. M DOC-01-TELAS-CRG-4
Copyright © 2014 Advanced Simulation Technology inc. 89
5.8. Incrementer
Summary: Tracks the number of times an event has occurred.
Description: The Incrementer component adds one to an output count when the
trigger transitions, which can be used to keep track of basic state information. The
output reverts to zero on model load or when the Reset flag is triggered. In addition
to the reset flag, two other controls MaxValue and TimeToReset can be used to
‘auto-reset’ the output.
Control Inputs
Reset
Type Default Value
boolean False
Description: Resets the output count to zero when set to true.
Trigger
Type Default Value
int32 False
Description: Increments the result by one on transition to a higher
or lower number.
Control Outputs
Result
Type Default Value
uint16 0
Description: The output count which increments by one when the
trigger transitions.
Internal Parameters
MaxValue
Type Default Value
uint16 0
Description: Acts as a ceiling for the result. When the result reaches
MaxValue it is immediately set to zero. If MaxValue is left at zero,
then the result will count up indefinitely.
TimeToRe-
set
Type Default Value
float32 0
Description: Acts as a timer in seconds that begins every time the
result is incremented. If the time expires before the next increment,
the result is reset to zero. If TimeToReset is 0 then no timed reset
will occur.
Trigger
Type
Type Default Value
TriggerType RISING_EDGE
Description: Determines when the count should increment. If set to
RISING_EDGE, the result will increment when the trigger increases
(0 to 1). If set to FALLING_EDGE, the result will increment when
the trigger decreases (1 to 0). If set to ON_TRANSITION, the result
will increment in either case.










