Full Library / Math Operator / Math and Trig / Accumulator
Block Name: Accumulator
Code File Location: VisualSim/actor/lib/Accumulator
Block Overview
- Output
the initial value plus the sum of all the inputs since the last time a
true token was received at the reset port. One output is produced each
time the actor is fired. The inputs and outputs can be any token type
that supports addition. The output type is constrained to be the
greater than or equal to the input type and the initial value type.
init
public Parameter init
- The value produced by the ramp on its first iteration. The default value of this parameter is the integer 0.
input
- Any token type that supports addition and dividion by integer.
reset
public TypedIOPort reset
- The
reset port of type BooleanToken. If this port receives a True token,
then the accumulator state will be reset to the initial value.
ouptut
- Gives the output as the same data type as the input.
Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents