CheckPwmSignal

ID: Check/CheckPwmSignal


Analyse a PWM signal - Check the period and the duty cylce.

Note: A period starts with a rising edge and ends at the next rising edge. The duty cylce is the duration from the rising to the falling edge divided by the period. With the CheckCondition, it is possible to select the interval to check. If an interval is active the evaluation starts at the next rising edge.

../../_images/CheckPwmSignal-01.jpg

Signals

PwmSignal

signal to check

  • Direction: IN

  • Optional: False

Parameters

dutyCycle

Reference value for the duty cycle (0..1)

  • Direction: IN

  • Type: FLOAT

dutyCycleTolerance

Tolerance value for the duty cycle [dutyCycle-dutyCycleTolerance <= measured duty cycle <= dutyCycle+dutyCycleTolerance] (Default = 0)

  • Direction: IN

  • Type: FLOAT

highValue

The lower bound to detect the high state for the PWM signal (Default = 0)

  • Direction: IN

  • Type: FLOAT

lowValue

The upper bound to detect the low state for the PWM signal (Default = 1)

  • Direction: IN

  • Type: FLOAT

period

Reference value for the period to check

  • Direction: IN

  • Type: FLOAT

periodTolerance

Tolerance for the period [period-periodTolerance <= measured period <= period+periodTolerance] (Default = 0)

  • Direction: IN

  • Type: FLOAT