LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create curve between two points on graph

 Hi...............

I am have ploted a graph of a staight line haing two points i have used "XY graph"as it have two points it gives staight line but i don't want straight line it should be a curve shape so, please help me for the same.

0 Kudos
Message 1 of 5
(5,009 Views)

Given two points, there is only one possible straght line, but an infinite number of possible curved lines. To define a curved line, you need either more than two points, additional constraints, or an otherwise clearly defined mathematical model.

 

How should the curve look like? Polynomial? Exponential? Reciprocal? Circular? Spiral? Bézier?...?

0 Kudos
Message 2 of 5
(4,995 Views)

All LabVIEW graphs plot exactly what you give them - no more and no less.  In this case, you are giving the graph two points, so it plots a straight line.  If you want a curve between the points, you will need to define that curve (spline, polynomial, ...) yourself, calculate enough points to be visually pleasing, and plot them, probably as a second plot behind the first.  If you have a model the points should be following, that would be a good place to start.  If not, LabVIEW does include subVIs to calculate things like splines and polynomial fits, depending on your needs.

 

Let us know if you need more help.

0 Kudos
Message 3 of 5
(4,994 Views)

Although your graph will only connect the dots, there is the ability to markup your graphs with the property plot images (there are 3 planes of images).  This can be a lot of work but you can draw dirrectly on the plot area programatically.  This will not add extra data to your plot (the other option is to fill between with false points that are calculated based on the curve type you are interested in) but can allow for some interesting plot annotations.  depends on how much effort you want to put into this.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 4 of 5
(4,984 Views)

Thak you .............

 

Now, I am clear about my task.

0 Kudos
Message 5 of 5
(4,965 Views)