LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw lines from differents plots problem...

Hi,
 
I would like to draw different lines on the graph, but i see all the graph start from 0,0...
is it possible?.
I attached the vi and picture (which i want).
0 Kudos
Message 1 of 4
(2,840 Views)
0 Kudos
Message 2 of 4
(2,839 Views)
First of all, you're not creating the correct input data type to the XY graph if you want 11 separate plots. with Context Help on, go to the diagram and click on the graph indicator. It says that for multiple plots, you create an array of single plots. A single plot is a cluster with an X array and a Y array. You don't have that. I don't understand your math and what you're trying to plot. If you're trying to plot 11 separate lines, then you need a array of clusters with 11 elements. Each element should have a cluster with a 2 element x array and a 2 element y array. You need 2 points to define a line (x0/y0 and x1/y1). If you could explain a little more on how you're trying to calculate each line, more help can be given.
Message 3 of 4
(2,816 Views)
Hi Dennis,
 
Well, i want draw a square with radius borders, to get the area inside the figure.
The easy way is putting 10 lines, dividing the height of object on 10 parts. Then i input the width of each line, and later join all the borders to get the figure, and with this numbers lines, i can calculate the area inside of figure. I dont know if labview itselft is be able to get the area inside of any figure, like it could get autocad program... I got it on excel, therefore is possible on labview.
 
I divide the width to draw midle line, and when they are drawn, i should add the other side of lines, join the border and remove the lines to show the figure, if i select it, or only show the lines...
 
I attached one capture, on autocad to show you what i mean...
 
Thanks, Fonsi. 
0 Kudos
Message 4 of 4
(2,811 Views)