LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw a line passing through two points

How to make a line in xy graph using two points and passing through these points (not manually please)

0 Kudos
Message 1 of 3
(2,739 Views)

Hi pdpanchani,

 

put both points into one plot and display the plot in your XY graph…

 

What exactly is the problem? Where are you stuck?

Best regards,
GerdW


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

If the line should extend past the two points, do a linear fit on the two existing points, pick two new x values bounding the desired range of the line and use linear evaluation to generate the respective y values.

(all this could also be done using simple math, of course) and make a second plot with a line interpolation style.

 

I assume you know how to make two plots on one graph?

0 Kudos
Message 3 of 3
(2,704 Views)