LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Superimpose a point on a graph

Solved!
Go to solution

Hi,

 

I am a beginner at Labview. Attached below is the program and the Output of my Program. I have plotted the original 2 Dimensional Array of Force(Y) vs Angle(X) on the XY graph( Blue Lines and Dots) The Black Curve is the polynomial fit of this data. Now with a Peak Detector I have found the amplitude and the location of the peak (Black Square) which gives me the Side Angle and the Force. But now heres my problem, I want to find the original Force from the original data with respect to the new Side angle(X value) that I get from the Peak detector. That means, I want to superimpose this point (X Value) on the original Graph and find the respective Force (Y Value).

 

Can anyone tell me how I can do that?

0 Kudos
Message 1 of 5
(3,361 Views)
Solution
Accepted by topic author rvkamat

Hi rvkamat,

 

you need to use the same Interpolate1DArray function you used to find that point on the original measurement data:

Find the (broken) index in the X array and use that index to interpolate the Y data array…

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,347 Views)

Somehow the picture vanished, so let's try again:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(3,335 Views)

Hi GerdW

 

Thanks that worked! I was trying with the Interpolate 1D function before but now it worked properly together with the Threshold 1D Function.

0 Kudos
Message 4 of 5
(3,333 Views)

Alternatively, interpolate array works directly on an array of XY points, eliminating the second function. Same difference.

(Note that the points need to be sorted in X)

 

 

 

(function is the lower part are "index & Bundle cluster array", and "interpolate array")

 

You can even swap the inputs to "index&Bundle ..." and then use "threshold array" instead in the same way. 😉

Message 5 of 5
(3,308 Views)