Dynamic Time Warping Interval

The Dynamic Time Warping Interval algorithm compares several input data with each other. The special feature of the algorithm is that signals with different speeds or even shifted signals can be compared. Only the signal interval of a configured window is considered for the comparison. New results are output after the window expires. As a result, the distance between the reference signal and the respective input signal is output. The smaller the distance, the more equal the compared signals are. If the distance is 0, both signals are identical. The amount of distance depends on the equality but also on the length of the signals.
Optionally, a Boolean signal can be selected for the Enable Execution input so that the algorithm is only active if the value of the selected signal is TRUE.
Configuration options
- Num Channels: adds or removes an input channel.
- Window Size:specifies the number of cycles over which a calculation is made. The memory requirement of the algorithm is proportional to this parameter.
Output values
- Best Match Idx: outputs the index of the input channel with the smallest distance to the reference channel.
- Distance 01 ... n: specifies the distance between the reference signal and the respective input channel. The smaller the distance, the more equal the compared signals are.
Standard HMI Controls
For the Dynamic Time Warping Interval algorithm, the following HMI controls are available for generating an Analytics Dashboard:
1. The Table Control and Multivalue Control visualize all output values: Best Match Idx, Distance.



Alternatively, customer-specific HMI controls can be mapped in the Dynamic Time Warping Interval algorithm using the Mapping Wizard.