Is your input signal digital or analog?
The input signal is analog.
Yes I think that's the issue.
You may have to pass your signal through a comparator first, to make it a square wave, then use that as the input-signal.
I did this and still 0 remains.
Can you check if you can see the signal at the output of the comparator?