Edge Counter
Description
The block Edge Counter
counts the number of edges in a dataset. An edge is defined as the difference between two samples is greater than 0 for rising edges.
This can be useful if you want to count the edges in a digital signal.
Input
The input is MxN
.
Output
The output is dependent on Axis
property. But can either be Mx1
or 1xN
.
Attributes
Attribute | Value |
---|---|
Name | EdgeCounter |
Edge | Rising |
Axis | 1 |
Channels | 1 |
Name
Name specifies the name of the block.
Edge
Edge specifies what kind of edge should be counted. Currently only Rising
is an option.
Axis
Axis specifies which axis the edges should be counted on.
Channels
Channels specifies the number of input(s)/output(s) the block will have.