LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting

Solved!
Go to solution

Hello,

Good Evening can some please helo,

how can i plot latitude, longitude & height graphically through an incoming string which contains lat,long & height of the device through serial port.

 

0 Kudos
Message 1 of 20
(4,040 Views)

@Anjaney wrote:

Hello,

Good Evening can some please helo,


helo (sic) there!

 

You want a chart with three traces, a 3D line graph, or something else?

 

What have you tried so far?

How is the incoming string formatted or encoded? Do you have an example string and documentation?

Message 2 of 20
(4,019 Views)

hello sir,

I am trying to do a spherical plot of lat,long&height, so far i looked in forum as well as but didn't find a way of doing such type of plotting.

The example VI has been attached sir.Screenshot (1).png

0 Kudos
Message 3 of 20
(3,995 Views)

I have no idea what a "spherical" plot is. Can you draw a picture? how are the 3 axes assigned?

 

Your code makes no sense whatsoever. Can you give an actual received string with numbers? Are they integers?

 

Some points:

  • there is an "=0" primitive.
  • You should check the "c" string after the function. No need to spin & process once more on an empty string.
  • Your zero should be blue
  • You don't need to wire the indices of "index array" if you want the elements in sequence.
  • Your desired values are numerics, not strings.
  • The number of iterations is probably known before the loop starts, so use a FOR loop.
Message 4 of 20
(3,979 Views)

Here's a simple simulation to simulate and get the three coordinates back. Once you explain what a "spherical plot" is, it can be adapted accordingly.

(Of course you might want to add a bit more code to validate the header ($) and terminator (&&) and reject the current data if it fails. Not shown)

 

ChartCoordinates.png

Message 5 of 20
(3,971 Views)

Thank Your Mr. Altenbach for your support, sorry for delay in reply sir,

the incoming string is like $,+32.95622080,-096.71415970,+00169.457,&&

and i expect the output graph as attached with this message.image.jpeg

0 Kudos
Message 6 of 20
(3,896 Views)

i can't draw a 3d graph this is frame of reference from the upper side but the desired graph is like in z from also where i can see the height also.

 

0 Kudos
Message 7 of 20
(3,891 Views)

@Anjaney wrote:

and i expect the output graph as attached with this message.


Well, this has nothing to do with "spherical", it is just a plain xy graph. Whatever happened to the height? Are you ignoring that? You could map it into an intensity graph and encode the height into a color ramp. Or you could use a 3D line graph and orient the axed as desired.

 

Is the number of points fixed or does it grow forever? Do you really want a line to connect the first and last point? Do you need all these annotations?

Message 8 of 20
(3,878 Views)

the points are not fixed sir they keep on changing as the updated string is received and there is no line connecting all the point i just drawn it. although am not ignoring the height sir i just wasn't able to demonstrate on the drawing

0 Kudos
Message 9 of 20
(3,872 Views)

@Anjaney wrote:

the points are not fixed sir they keep on changing as the updated string is received and there is no line connecting all the point i just drawn it. although am not ignoring the height sir i just wasn't able to demonstrate on the drawing


So how do you want to show the height information?

Do you want to show all points, or e.g. just the last 1000 or so? (If you keep all points, eventually you'll run out of memory and you'll have more points than available pixels)

Message 10 of 20
(3,868 Views)