Issue while capturing pulse width



I am using input pulse measurement mode of timer. In code generator, when I set rising edge , I am getting proper values for the total time period.

But when I am using both the edges in code generator, the values are toggling. I am able to see both values but not able to capture both the values.

I want both the values. How I can be able to do?

In short, I wanted to monitor i/p PWM continuously and continuously wanted to find duty cycle. Can you please tell me how I can be able to do??