MATLAB: Is there a method to detect when a PWM input signal changes to a DC signal in Target Support Package FM5 2.2.3 (R2009a)

dcelectric_motor_controlfm5power_conversion_controlpower_electronics_controlpwmTarget Support Package FM5

I am using the Target Support Package FM5 to try to find the duty cycle of a PWM input signal. I am attempting to find the total high time, then find the total period and divide to get the duty cycle with the help of a TPU3 Programmable Time Accumulator block. However, if the input changes to a constant DC value the output of this block will only keep outputting the last value.
I also tried working around this by using the New Input Capture/Input Transition Counter block. However, this block too only updates to a new value when there is another edge in the signal, so it is of limited value when the signal is dead.
Is there a method to detect when a PWM signal changes to a DC signal?

Best Answer

The ability to detect when a PWM signal changes to a constant DC value and flag this is not available in Target Support Package FM5 2.2.3 (R2009a).
There are no workarounds.