LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph multiple plot

Solved!
Go to solution

I’m a RC model pilot. In my plane I mounted a GPS (and more).

All this data logged in a file.

I Want to display the GPS data in a XY graph, as background a copy from google maps.

Tis works, but I want more: I want to have a tail (let say 6 points) on the XY plot.

This to analyze better what the plane has done.

I tried this, but it’s not working!

This is only a part of the program, I hope it shows wat I want

0 Kudos
Message 1 of 5
(1,037 Views)

You didn't show anything.

 

You'd make an array, add points to it, limit it to n points. Keep the array in a shift register.

0 Kudos
Message 2 of 5
(1,018 Views)

I did but it dont work

0 Kudos
Message 3 of 5
(983 Views)

use this to test

0 Kudos
Message 4 of 5
(980 Views)
Solution
Accepted by topic author Wim-S

You have a few problems here...

 

Duplicate code, obviously... "te lang of gelijk? dan inkorten van onder" would fit in a sub VI. If you make it reentrant, it could even keep the history in it's state (uninitialized shift register), although I wouldn't prefer that (I'd prefer keeping state in a class's private data).

 

But you've put the image in the front image of the XY Graph, so you'll never see anything as the image covers it. Use the back image.

 

Also, the scales of the XY graph are not scaled. The X Scale is set to 5..5, the y scale to 51.4006..51.4095. So the points won't show.

 

Hopelijk help het iets...

0 Kudos
Message 5 of 5
(961 Views)