08-30-2019 12:45 PM
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.
Solved! Go to Solution.
08-30-2019 01:01 PM
@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?
08-30-2019 01:24 PM
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.
08-30-2019 01:56 PM - edited 08-30-2019 02:18 PM
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:
08-30-2019 02:10 PM - edited 08-30-2019 02:20 PM
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)
09-02-2019 11:57 AM
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.
09-02-2019 12:03 PM
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.
09-02-2019 12:53 PM
@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?
09-02-2019 01:04 PM
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
09-02-2019 01:12 PM
@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)