PWM Analysis

Calculates the duty cycle, pulse width, period or frequency from a single input signal. The input signal is converted to a digital signal.

Input(s)

Name

Description

Unit

Type

input

Input signal

 

Analog Signal

signalThreshHigh

Threshold for the high state

 

Constant Value

signalThreshLow

Threshold for the low state

 

Constant Value

timeout

Time-out

s

Constant Value

Output(s)

Name

Desription

Unit

Type

dutyCycleHigh

Duty cycle based on the high phase of the input signal. Calculated signal is updated on positive slope of the input signal. Range 0...1.

 

Analog Signal

dutyCycleHighPercent

Duty cycle based on the high phase of the input signal. Calculated signal is updated on positive slope of the input signal. Range 0...100%.

%

Analog Signal

dutyCycleLow

Duty cycle based on the low phase of the input signal. Calculated signal is updated on negative slope of the input signal. Range 0...1.

 

Analog Signal

dutyCycleLowPercent

Duty cycle based on the low phase of the input signal. Calculated signal is updated on negative slope of the input signal. Range 0...100%.

%

Analog Signal

frequency

Frequency of the input signal. Considers the complete cycle. Calculated signal is updated on positive or negative slope of the input signal.

Hz

Analog Signal

frequencyNeg

Frequency of the input signal. Considers the complete cycle. Calculated signal is updated on negative slope of the input signal.

Hz

Analog Signal

frequencyPos

Frequency of the input signal. Considers the complete cycle. Calculated signal is updated on positive slope of the input signal.

Hz

Analog Signal

period

Duration of the signal period between two identical slopes of the input signal. Considers the complete cycle. Calculated signal is updated on positive or negative slope of the input signal.

s

Analog Signal

periodNeg

Duration of the signal period between two negative slopes of the input signal. Considers the complete cycle. Calculated signal is updated on negative slope of the input signal.

s

Analog Signal

periodPos

Duration of the signal period between two positive slopes of the input signal. Considers the complete cycle. Calculated signal is updated on positive slope of the input signal.

s

Analog Signal

pulseWidthHigh

Duration of the high period of the input signal. Calculated signal is updated on negative slope of the input signal.

s

Analog Signal

pulseWidthLow

Duration of the low period of the input signal. Calculated signal is updated on positive slope of the input signal.

s

Analog Signal

state

Signal state of the derived digital signal after applying the thresholds. Calculated signal is updated on positive or negative slope of the input signal.

 

Logical Signal

Notes

The threshold parameters are used to derive the ‘high’ and ‘low’ states of the digital signal. The output signals are updated whenever the state of the input signal changes, or after a timeout duration (specified in seconds).