CalculatePwmStateTime

ID: Calculate/PwmSignal/CalculatePwmStateTime


Calculates the state time of a PWM signal. Low state: signal < offset + reference level * amplitude. High state: signal > offset + reference level * amplitude

../../../_images/CalculatePwmStateTime-01.jpg

Signals

PwmSignal

The PWM signal that should be analyzed.

  • Direction: IN

  • Optional: False

StateTime

The state time of the given PWM signal.

  • Direction: OUT

  • Optional: False

Parameters

amplitude

Amplitude (>0) of the given PWM signal.

None .. amplitude = 1.0 [Default]

  • Direction: IN

  • Type: FLOAT

offset

Offset of the value of the given PWM signal.

None .. offset = 0.0 [Default]

  • Direction: IN

  • Type: FLOAT

referenceLevel

Reference level at which the state time calculation starts and stops. The range of definition is from 0 to 1 (without the values 0 and 1).

For low state: None .. referenceLevel = 0.1 [Default]

For high state: None .. referenceLevel = 0.9 [Default]

  • Direction: IN

  • Type: FLOAT

stateLowOrHigh

Define which state of the PWM signal should be analyzed.

0 .. analyze low state 1 .. analyze high state

  • Direction: IN

  • Type: INTEGER