TOC PREV NEXT INDEX

timer

Synopsis

module timer {
int+read TimeStep;
int+read Active;
int+read ValStep;
itn+write Val;
};

Description

timer triggers an operation at a given time interval. For example, you could use a timer to rotate an object by 15 degrees every 10 seconds.

Input ports

TimeStep

Indicates the time interval for incrementing the Val subobject in milliseconds.

Active

If set to 1, activates the timer. While the timer is active, the Val object is modified at each time step.

ValStep

Indicates the amount to increment the Val subobject during each time step.

Output ports

Val

Indicates the current value.

TOC PREV NEXT INDEX