When the source data contains multiple cycles of a signal, the duty cycle will be determined for each cycle of the input signal. The output of the duty cycle I/O will then contain the progress of the duty cycle in the input data.
A typical application of the Duty cycle I/O is to analyze control signals of actuators that are duty cycle driven.
To control the behavior of the Duty cycle I/O, several properties are available. These can be accessed through a popup menu which is shown when the I/O is right clicked.
The Type property determines how the duty cycle is determined. Two types can be selected from:
In most applications, the active state of a signal is "high".
In some applications, for example in automotive applications, it is more common to consider "low" as the active state of a signal.
The Mid level property sets the level that determines whether a signal is "high" or "low". In the setting Auto level, the mid-level is automatically detected, as halfway between the minimum and the maximum of the input signal. In most applications this will give good results. However, when a signal is noisy or inactive, it can lead to wrong duty cycle detection. To prevent this from happening, it is possible to set the mid-level to a User defined value.