LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

measure speed

Hi,

I develop an application in which I measure pressure, temperature and speed.
But I have a problem to measure speed. I measure speed with an encoder that I connect to a BNC 2090 through user1.I use Measure frequency.vi. So I put this vi in a while loop to measure speed continuously and I save data on DIADEM. But I want to measure speed every 0.01 s and I loose data. You can find the vi in the attached file

Please help me
0 Kudos
Message 1 of 2
(2,548 Views)
The problem is you've started with an example that is not designed to perform a *continuous* frequency measurement. Your VI performs a single-shot frequency measurement inside of a while loop. Unfortunately this is not quite the same as a true continuous frequency measurement because you are reseting the counter each time your main while loop executes.

Use \examples\DAQ\counter\daq-stc.llb\Measure Buffered Period (DAQ-STC).vi to perform a true continous measurement. Simply invert the period measurements to get frequency.
0 Kudos
Message 2 of 2
(2,548 Views)