LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph measurements

Solved!
Go to solution

Hi,

 

I would like to get (x,y) coordinates of 40% the maximum value in the area I selected (it is shown in the photo attached below).

 

It is good to control the selecting area.

 

Please help.

Graph.jpg

Download All
0 Kudos
Message 1 of 20
(2,129 Views)

Please keep related discussions in one place. No need to constantly start new discussions.

 

Don't use waveform functions if you have arrays!

 

There is probably no point that has 40% of the max, so I am not sure what x-values you want to get out of this. DO you want a horizontal line?

 

You can use "array subset" to select the desired range (e.g. based on two cursors) and "array min&max" to get the index and y value of the point, use the index to index into the x array to get the x-value. 

Message 2 of 20
(2,092 Views)

Thanks @altenbach. I'll keep the discussion in here.

 

I am new to LabVIEW. Could you please send VI or screen shot of  that created VI.

 

I want to get 40% of maximum y (vertical) value and indicate the x,y coordinate of that. So have to create user control to select particular range in x axis (which is the area in red color circle- it is depend on the user). Then the VI should be calculate the maximum value of that region and gives the x,y coordinate of 40% of the maximum value position.

 

0 Kudos
Message 3 of 20
(2,070 Views)

(I don't have a VI, but it should be easy to create. Have you tried?)

 

It can only give the x-location of the maximum, not of the "40% maximum". Is that what you meant?

Message 4 of 20
(2,065 Views)

Thanks for your response.

 

Still I'm trying to create the VI.

Actually I want the x location of the 40% of the maximum. Not the maximum position. 

 

 

0 Kudos
Message 5 of 20
(2,058 Views)

There will be more than one "40%" location and they might need interpolation because they are not guaranteed to fall on a point.

Message 6 of 20
(2,049 Views)

Yeah. That is also a case.

 

Btw is there any method to get the coordinates when we select a point on the waveform using the cursor?

0 Kudos
Message 7 of 20
(2,042 Views)

Hi samitha,

 


@samitha95 wrote:

Btw is there any method to get the coordinates when we select a point on the waveform using the cursor?


Read the cursor position using property nodes of the graph…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 20
(2,029 Views)

Thanks a lot @GerdW.

I'll read that.

0 Kudos
Message 9 of 20
(2,015 Views)

Hi,

In my VI, what I want to do is cursor position automatically goes to the maximum amplitude. More details in the photo attached.

How can do that?

cursor.jpg

0 Kudos
Message 10 of 20
(1,962 Views)