LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

line through graph data (xy graph vi)

my vi occasionally draws a straight line through my xy graph in addition to the data. i've tried enabling the reset terminal, but it doesn't seem to alleviate my problem...any comments would be appreciated. attached is a picture.
0 Kudos
Message 1 of 4
(2,770 Views)
What version of LabVIEW are you using? About how often does the line show up? Is it always in the same spot? Can you post your code that produces this graph?
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,751 Views)
to me it looks like the last point in your data array [(x,y)] is identical to the first point. An XY-graph produces a closed curve then. E.G. try to plot the array [(0,0),(1,2),(2,3),(3,4),(0,0)]...it produces a bow-tie figure.
Just remove the last point from your array.
0 Kudos
Message 3 of 4
(2,738 Views)
We have seen this exact same problem in 6.1. No combination of clearing,
rescaling, resetting, etc. the graph would clear the line. Always appeared
on second and subsequent viewings, even with entirely new data. Really
feels like an uninitialized index somewhere down in the graph internals.

The only solution we found was to prepopulate the graph with 4 points of
bogus data (don't know that 4 is critical) per the attached. Hope this
helps.

Matt
Message 4 of 4
(2,716 Views)