I have two signals:
Signal 1: 1kHz frequency
Signal 2: user signal
My programm schould count the circles of signal 1 until signal 2 becomes active. The problem is, that the counter schould immediadly start form 0 on to count until singal 2 becomes active again. So there schould be no circle of signal 1 lost between signal 2 becomes active. After signal 2 becomes active the numer of the circles of Signal 1 schould be given out on the monitor.
I´m sorry but I don´t know how I can realise this. Hopefully you can help me