LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass XY Graph 2 order pairs of points = get 5 points out = ????

Hi,

I pass the ordered pairs (2103, 2995) and (2103, 3329) to the xy graph using an xy buffer.  When I look at the actually plot on the screen, I find that the following points have been plotted:  (2103, 2995), (2995, 2103), (3329, 2103), (2103, 3329) and (2103, 0).  Obviously, something is wrong here, but what could I be doing wrong?

Attached below is the code that I'm working on.
Download All
0 Kudos
Message 1 of 6
(2,991 Views)

Could you create a small example that doesn't require all of the subVIs that you didn't include and something that uses a reasonable amount of screen space?  A rule of thumb is to keep you diagram no larger than one screen. Yours is many times the size of my 19 inch monitor. Unless you have something enormous on your desktop, I don't see how you can do anything with this program. I certainly can't.

Your wiring and programming style also leaves a lot to be desired. You have sequence structures where none are required, a lot of local variables/value property nodes, hidden wires, and wires that go in different directions.

Message Edited by Dennis Knutson on 06-27-2007 04:06 PM

Message 2 of 6
(2,977 Views)
I haven't looked at your code, but there's an option for XY graphs to either delete old points when graphing new ones or not to delete them. Make sure these aren't 3 points that have already been graphed and you aren't just adding your 2 new points on top of them.
Jarrod S.
National Instruments
Message 3 of 6
(2,968 Views)
Thanks Jarrod.  Running from a blank xy graph produces the aforementioned effect.  So I doubt it's adding on top of old data. 

Thanks though.
0 Kudos
Message 4 of 6
(2,958 Views)
Welcome to my world.  I inherited said code from a colleague.  Anyway, I do wish to thank you for your unhelpful reply.  Smiley Happy  If only we were all programming gods like you.  Smiley Wink
0 Kudos
Message 5 of 6
(2,958 Views)
(double post)

Message Edited by oglahai on 06-27-2007 06:35 PM

0 Kudos
Message 6 of 6
(2,958 Views)