I'm trying to measure the frequency of a square-wave signal from a turbine flowmeter. The flowmeter is installed in a complex system of valves, pumps, and other sensors. I have created a main VI in LV 7 which controlls this system as well as acquires data from all the sensors (mostly attached to NI-DAQmx hardware). This Vi is basically a large while loop that operates continuously until the user terminates it. The flowmeter pulse is to be measured by a single counter on a 6061E board configured by NI-DAQmx single low frequency tasks.
I have configured the task in MAX with a hi limit of 5kHz and a low limit of whatever the default is for the 10kHz time base (I think around 0.02Hz) and connected the signal to PFI4 (for counter 1) a
s instructed. My flowmeter's frequency varies from 0 to 3kHz. Since my system's flow rate is zero upon start-up of my main VI, the frequency measurement task times out, producing an error message, shutting down the VI.
Is there any way to measure my flowmeter's signal without these time-out troubles? I can't seem to find any period or frequency measurement examples that allow the signal to go to zero without creating some sort of error.
Thanks,
Tom