I need to use a triggered subystem to detect flanks (pos and neg) and calculate the time difference between these and then pass the value on to calculate the speed which will go into a PI controller and herefore i need also the the values (in my case it will be 0 - when no more flanks are detected) when the system is not triggered anymore.
But my problem is that the triggered subsystem starts when the flanks starts and hold the last value when no flanks are coming anymore.
I need the 0 at the beginning and the 0 at the end because with this i would pass on a wrong value to the controller.
I build an example so u can understand what I mean.
Thanks in advance. =)