Don't know what is wrong with this code. Am trying to determine the frequency of a signal from an analog signal (paddlewheel flowmeter). As a starting point, I'm using a simulated square wave with the "Timing and Transition Measurements" VI and am getting following error:
~~~~~~~~
Error -20308 occurred at Timing and Transition Measurements -> frequency_determination_example.vi
:3" (waveform index 0 of 1)
Possible reason(s):
Analysis: The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units.
~~~~~~~~~
However, there seems to not be any options in the "Timing and Transition Measurements" VI to set mid reference levels.
Any insight into why this simple problem is occuring would be appreciated. Attached is my program's simple code.
-tsippel