06-13-2016 10:15 AM
Hey I've been trying to make a vi that can find the time it takes between a falling edge and a rising edge. So far this is what I have come up with but it seems to give a minimum time differance of 5ms. Is there a way to fix this without using a second clock.
Here is a plot about what I'm talking about:
this should give me a time between clicks of about .00001s not 5ms.
I'm usinging a NI myDAQ.
I have also attached the Vi if you want to take a look.
06-13-2016 11:02 AM
First, stop using the "Run Continuously button."
Next think "Data Flow" Your second loop cannot start till you press "Stop" and the boolean input to the second loop must be TRUE so, the loop runs once.
06-13-2016 11:13 AM
So I havent been using the run continuously button. It should be set up to work just using run and still generate a contiuos pulse train.
06-13-2016 01:57 PM - edited 06-13-2016 02:02 PM
Here is the code functioning as intended at lower frequencies.(the right half of the plot was run with those settings)