Hello I want to measure the Frequency of a signal (0-5V) in a USB 6000.
Since it does not do frequenzy readings I have to write the code by myselfe.
I want to use the digital input and measure the time between two edges.
So far so good. but my calculated frequenzy jitters around the correct mean. I have differences of 33 Herz up and down.
Frequenzy to read 200 Hz. So 5 ms between two phases. Signal TTL (0-5)
Here a codeexample of my while loop.