LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get certain attributes of a graph?

Solved!
Go to solution

How to get particular attributes from a graph of two variables such as Max( Y variable) and the value of X variable at the maximum point of the Y variable.

 

 

Screenshot (4).png

0 Kudos
Message 1 of 6
(2,810 Views)
You don't get data from a graph. You get the data from the source of the graph. Use Array Min/Max. This will return the max value and the index of it on the array. From the index you can get the x value.
Message 2 of 6
(2,804 Views)

What if I want both X and Y values? I have the max value which is the max Y value and I want the X value corresponding to the Y value

0 Kudos
Message 3 of 6
(2,800 Views)
Solution
Accepted by harsha0209
I already said what you need to do to get the max y value and its index. Please try this before asking the same question.
Message 4 of 6
(2,792 Views)

I got the max value and index of the Y variable from its source ( 1D array) . Now how can I obtain the value of X variable using the Index I obtained from the Array min& max???

 

 

I am sharing the VI file so that u can have a look at it.

 

Thanks in advance.

0 Kudos
Message 5 of 6
(2,776 Views)
Sorry, I can't look at your VI right now. If you have a voltage array, just use the index array on it with the index returned from the y array.
0 Kudos
Message 6 of 6
(2,757 Views)