01-13-2010 10:16 AM
I used LabWindows/CVI for plotting ARC. I can't plot arc when Sweep angle is less than five.
could you help me solve that problem?
PlotArc(panel,PANEL_GRAPH1,0, 40, 40, 0, 8, 4, VAL_WHITE, VAL_TRANSPARENT);
my email: phan_khanh13@yahoo.com
Best regards!
Thanks
01-14-2010 10:32 AM - edited 01-14-2010 10:32 AM
By specifiying PlotArc(panel,PANEL_GRAPH1,0, 40, 40, 0, 8, 4, VAL_WHITE, VAL_TRANSPARENT); you are settingsweep angle in tenths of degrees, so you are writing 4 tenths of a degree ( http://zone.ni.com/reference/en-XX/help/370051P-01/cvi/uiref/cviplotarc/ ) . If you modify the x1, and y2 you can see this however small when i plotted using your example and this line,i got the following graph
PlotArc(panel,PANEL_GRAPH1,38, 40, 40, 38, 8, 4, VAL_WHITE, VAL_TRANSPARENT);
Again it is very difficult to see, but if you loook at x = 40, and y = 39, you can see 4tenths of a degree plotted. It looks like a single white dot.
01-14-2010 11:23 AM
Thank Snowman 6008 for your answer.
I knew i was setting sweep angle 4 tenths of a degree.
When i set it 5 tenths of a degree and i zoomed in, i saw a line. But when i set it -0.5<sweep angle<0.5(-5<arcAngle<5) and zoomed in, i could't see a line. it is only small dot.
when x1, y1 and x2, y2 are of small value, the length of line is short(Line = radius*sweep angle), but when they are of big value, the length of line will be long and affect the graph.
I gave you two pics with 4 tenths of a degree and 5 tenths of a degree.
Can you try two this way?
Thank you again.
01-15-2010 09:55 AM
01-20-2010 03:21 PM
01-25-2010 10:10 AM
Hi Snowman,
I am using LabWindows/CVI 2009 and the issue still persits.
I did a check on the list of bug fixes over different releases of LabWindows/CVI, I could not find the ID you mentioned (126708) in the bug fix list.
http://zone.ni.com/devzone/cda/tut/p/id/6609
So I assumed the bug is still there. Please correct me if I am wrong.
By the way, is there any work-around for this bug? Is NI R&D planning to fix this bug any time in the near future?
Thanks.
PQH
01-25-2010 10:36 AM
Hi Snowman and PQH,
I still couldn't find the ID of issue.
Snowman, can you give me the link of that website?
Thank you!
Khanh
01-26-2010 09:32 AM