LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding y-intercept of graph at any point

Solved!
Go to solution

hello : )

 

    im attaching a simple vi of xy graph in the attached file..

an array of x-axis and y-axis points is also shown..

now i want to find the y-coordinate (y-intercept) of the graph plot at any x-axis point..

i have used cursor for this which works very well for x-axis values defined using arrays..  the problem is it does not shows the right amplitude for x-axis value not defined using array

eg.:- it shows amplitude of x-axis point 5 as 8 but for 5.4 also it shows amplitude as 8 which is not correct..

so is there any way or alternate method to find the y-intercept precisely

 

 

0 Kudos
Message 1 of 3
(3,300 Views)
Solution
Accepted by gargrahul

Hi gargrahul,

 

try this:

check.png

Keep in mind: the X values have to sorted in order to have this piece of code giving you the correct Y value…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(3,288 Views)
GREAT GREAT GERDW !!! IT WORKS PERFECTLY WITH REGARDS, RAHUL GARG
0 Kudos
Message 3 of 3
(3,259 Views)