Engee documentation

Counter Limited

Counter with reset when the upper limit is reached.

blockType: Counter Limited

Path in the library:

/Basic/Sources/Counter Limited

Description

The Counter Limited block counts until the specified upper limit is reached. The counter then returns to zero and starts counting again. The counter is always initialised with zero.

Ports

Output

# OUT_1 — counter values
scalar

Details

The counter value as an unsigned integer with a bit size of 8, 16, or 32 bits. The block uses the smallest number of bits required to represent the upper limit.

Data types

Float64.

Complex numbers support

No

Parameters

Main

# Sample time — interval between calculation steps
SampleTime (real number / vector of two real numbers)

Details

Specify the interval between calculation steps as a non-negative number. To inherit a calculation step, set this parameters to -1.

Default value

-1

Program usage name

tsamp

Tunable

No

Evaluatable

Yes

# Upper limit — upper limit
Real number

Details

A limit value in the form of a finite real scalar.

Default value

7

Program usage name

uplimit

Tunable

Yes

Evaluatable

Yes

Additional options

C code generation: Yes