06-22-2009 05:09 PM
Hi all,
I currently measure the distance travel of a plunger on my UUT using a LVDT output (analog voltage going to a DAQ card). How would I measure velocity since I can't think of way to measure travel time of plunger ! I'm using LV 8.5.
Thanks
Solved! Go to Solution.
06-22-2009 09:04 PM
06-23-2009 10:34 AM
06-23-2009 11:49 AM
Are you measuring distance or are you measuring position?
If you're measuring position, then you have to take TWO readings, and TWO timer values:
Velocity = (Current Position - Previous Position ) / (Current Time - Previous Time)
Blog for (mostly LabVIEW) programmers: Tips And Tricks
06-23-2009 11:57 AM
06-23-2009 12:05 PM
What triggers your readings?
If you want a rough approximation, then whatever triggers the START reading should also remember the current mSec timer.
Whatever triggers the STOP reading should also remember the current mSec timer.
Two positions + two timers = Velocity, as outlined above.
That's "roughly approximate" because there's no hard correlation between triggering the reading and reading the timer - you don't know which comes first, or by how much.
If you need a more exact answer, consider sampling the whole travel at a fixed rate, then count samples between start and end. Multiply the sample distance by the delta-T and you have time.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
06-23-2009 12:24 PM
That was my issue. I had no way of "marking" the initial and "marking" the end ! I'm using state machine method in my LV so every action just happens in a sequence. Basiscally it looks like this:
-set my plunger to home postion
-measure home postion's analog value
-set my plunger to fully extend postion
-measure fully extend postion's analog value
-subtract fully extend postion value by home position value and calculate distance of travel
06-23-2009 12:37 PM
So, you ARE measuring position.
Again, what is triggering the measurements?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
06-23-2009 12:37 PM
In the state "measure home position's analog value" add a "Tick count (ms)" and put the reading in control "Start Time"
In the state "measure fully extend position's analog value" add a "Tick count (ms)" and put the reading in control "Arrival Time"
Subtract both control and you have the travel time, if and only if your code is synchronous with your plunger 😞
I would read the value of the plunger continuously.
Using the scan rate of your DAQ you know the exact time between readings.
Out of this two you get velocity.
Or like Ravens Fan already said, read position continuously in waveform type and differentiate the waveform.
11-09-2011 07:18 AM
Hi, how do I differentiate the waveform to attain the value of velocity?