CalculatePwmDutyCycle¶
ID: legacy/7.x/CalculatePwmDutyCycle
Deprecated: Replaced by array-based NumPy trace step template.
Calculates the duty cycle and period out of a PWM signal.
Note: The definition of the PWM signals is based on the STI standard of the ASAM group.
Signals¶
DutyCycle¶
The duty cycle of the given PWM signal.
Direction: OUT
Optional: False
Period¶
The period of the given PWM signal.
Direction: OUT
Optional: False
PwmSignal¶
The PWM signal which should be examined.
Direction: IN
Optional: False
Parameters¶
amplitude¶
Amplitude of the given PWM signal.
None .. amplitude = 1.0 [Default]
Valid types: int, float
Amplitude must be positive.
Direction: IN
Type: FLOAT
offset¶
Offset of the given PWM signal.
None .. offset = 0.0 [Default]
Valid types: int, float
Direction: IN
Type: FLOAT