LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Measurement

I was looking for some suggestions on the best way to analyze the attached waveform. I need to be able to measure the amplitude and width of any "bumps" that appear in the measurement sample. In this particular sample the "bumps" are found around -42 to -34 and -4 to 7. Ive been kicking around some ideas with measuring the slopes throughout the line and inspecting the values for rise and falls, as well as converting into the frequency domain and passing it through some filters. This is not my area of expertise so i was hoping someone who knows more about this than i do has the best solution.
0 Kudos
Message 1 of 3
(2,562 Views)
Hi TJM88

First I am curious how you got this waveform in the first place.

To answer your question.
You can create cursors on the front panel of the waveformGraph.
to do so:
1. Righ-click on the waveformGraph on the front panel>>Visible Items>>Cursors Legend
2. Right-click on the cursor legend and create a cursor>>select the cursor target (on the bottome right of the graph to allow you to select the cursor position)

You are now able to see the Y value for its corresponding X values.

This graph is made out of a 1D Array of Cluster, with the cluster containing 2 1D array of Doubles.
In order to have access to these sub arrays that make up this waveform graph, you can first use the Index Array to extract the first and only element>>then unbundle the cluster.

To take advantage of the cursor you created on the wavefromGraph, please create a property node to the waveformgraph (rightclick the waveformgraph>>create>>property node>>cursor>>cursor position)

Then you'll have access to the actual X and Y value of the cursor.

To perform slope calculation, you can create 2 cursors and do mathematical functions on them.

Hope this helps




Message Edited by Van_L on 05-21-2008 03:35 PM
Van L
NI Applications Engineer
0 Kudos
Message 2 of 3
(2,533 Views)

That was just something on my desk i scanned in and profiled with a measurement laser. I had pretty much done what you had described with measuring the slopes, i just did it by steping through the arrays at various points and calculating the slope in relation to the previous sample, which i am guessing would be very similar to setting two cursors and calculating slope that way. I am not 100% convinced measuring the slopes is the way to go with this, i am worried that as i walk down a radius on an object calculating the slope will give me false "bumps". If i reduce the number of samples between where i calculate my slope this would help clean up the radius problem but im thinking it would also make my scanning very susceptible to the surface finish on the object. A rough surface finish would produce large slopes if i calculated them point to point.

I was hoping for some magical algorithm i could pump these arrays through but it doesnt look i am getting that lucky....

0 Kudos
Message 3 of 3
(2,500 Views)