03-12-2012 05:01 AM
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.
03-12-2012 08:05 AM - edited 03-12-2012 08:10 AM
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?...?
03-12-2012 08:07 AM
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.
03-12-2012 09:01 AM
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.
03-13-2012 12:00 AM
Thak you .............
Now, I am clear about my task.