LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a single circular plot with six different diameter values

I have a diameter gauge, from which i'll be getting six different regional values for a single scan.
ie, for every 60 degree of the cross-section.
 
Now the requirement is that i want to plot this circle, with all these six values that i'm getting from the gauge.
I've tried with drawing it with six different arcs, but it seems like six different conical sections, as the drawn six arcs are independant.
 
Let the six values be 10.000, 10.002, 10.004, 10.001, 9.997, 9.999.
So i did tried to draw an arc of 10.000 from 0 degree to 60 degree
another arc of 10.002 from 60 degree to 120 degree and so on......
 
How can i obtain a smooth circle with these diameter values.
Smiley Sad
Using LabVIEW 8.0, 8.0.1, 8.2
0 Kudos
Message 1 of 18
(4,329 Views)
I'm confused as to what you are trying to do.  If you have six 60 degree arcs with different diameters, how are you expecting them to be drawn?  Perhaps you can attach a sketch.
Message 2 of 18
(4,323 Views)
This is the output i want.
let me know if i'm not clear.
 
 
Using LabVIEW 8.0, 8.0.1, 8.2
0 Kudos
Message 3 of 18
(4,304 Views)
Could you include a screenshot or attach a sample of your code?  I would like to see which VIs you are using to set this up. Thanks!
Message 4 of 18
(4,266 Views)
Sounds like you need to do a best fit curve to the data points. You really can't obtain a smooth circle, the radius values are different. Maybe a spline or elliptical interpolation.

Message Edited by unclebump on 12-05-2007 05:57 PM
Message 5 of 18
(4,240 Views)

Maybe you could have two plots on the graph. One is a perfect circle. The second would be an ellipse based on your largest and smallest diameter readings. Then rotate the ellipse to the axis with the largest diameter. See this thread.

http://forums.ni.com/ni/board/message?board.id=170&message.id=140436&query.id=30479#M140436

Message 6 of 18
(4,212 Views)
Is it even important to plot these things in a picture?  The differences in values are so small, that it just winds up looking like a circle anyway.  Your numbers range from 9.996 to 10.012, they look the same on a computer screen.  Perhaps you just need to plot a circle of 10, and just put text down in the different sectors relating to each of the measured values.
 
I don't think there is a mathematically way to draw the shape that you want, at least not without coming up with more specific rules in how you join the endpoints of each sector.  That would be a lot of work for you to do just to have it look like an ordinary circle in the end.Smiley Wink 


Message Edited by Ravens Fan on 12-06-2007 07:47 PM
Message 7 of 18
(4,208 Views)
Thanks for your advice. Actually its not that easy as you said. But the gladest part of this is that if such a work is just a one-time job. if its done for one time then we can use it anywhere and in any condition. There are always a easy alternate solution available, but need not be serving the actual purpose. The six set of readings are obtained from the gauge which represents corresponding zonal measurements. The difference between the values may not be that much small all the time, and if the difference found to be much large then the plot which now is drawn will be a meaningless one. If the actual product is having a noticable ovality, and if we are not able to show whats happening for real, then its doesnt makes any sense for the work we have provided to them, right. If we are giving a plot, then it should be showing the actual (ofcourse it cant be 100%), then only we can analyse the product in the labview software. Just drawing a plot with single diameter is ok, but thats not the requirement. Its that if zone 1 is having 10.000 and zone 2 is having 10.050, then when the plot is drawn the zone 1 dia will be 10.000 and zone 2 dia will be 10.050, but the main thing needed is that the region in between the zone 1 & 2 should be gradually rising from 10.000 to 10.050 towards the zone 2. And likewise in the rest of the regions also. As a set of data is obtained for OD similar set of data is also there for ID. And this combines to have the two figures drawn with thier corresponding centers. If a solution for a single procedure can be made, the whole problem can be solved and that is drawing an arc which have two different arc radius on its two ends, i think Smiley Sad


Message Edited by PIPL on 12-07-2007 03:21 PM
Using LabVIEW 8.0, 8.0.1, 8.2
0 Kudos
Message 8 of 18
(4,185 Views)
Hi pipl,

maybe this can help you to draw smooth curvesSmiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 18
(4,188 Views)
thanks GerdW Smiley Happy But to be honest, i dont understand what should i do with that C++ program (i think it is). It will be appreciated if you can  just help me out further explaining what to do. Thanks in advance.
Using LabVIEW 8.0, 8.0.1, 8.2
0 Kudos
Message 10 of 18
(4,179 Views)