03-08-2021 10:47 AM
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.
Solved! Go to Solution.
03-08-2021 12:09 PM - edited 03-08-2021 12:27 PM
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.
03-08-2021 05:46 PM
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.
03-08-2021 06:23 PM
(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?
03-08-2021 06:43 PM
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.
03-08-2021 08:42 PM
There will be more than one "40%" location and they might need interpolation because they are not guaranteed to fall on a point.
03-08-2021 10:42 PM
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?
03-09-2021 01:15 AM
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…
03-09-2021 02:07 AM
Thanks a lot @GerdW.
I'll read that.
03-09-2021 06:45 PM
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?