04-15-2013 02:25 AM
Hi everyone,
I am trying to plot contour lines based on three 1D arrays of eastings, northings and receiver levels. I will also need to overlay it over a google earth or maps image. So far I've looked at the contour line VI , but not really sure how to produce a 2D array which corresponds to the z- value (receiver level), i.e.what should I bundle my 1D array of receiver levels to make it a 2D array which will correspond to the coordinates given with easting and northing. Any guidance would be highly appreciated.
I've managed to plot the values using a 3D scatter vi (see attached png), but would like to be able to use the Contour Line VI as it might provide me with more flexibility further down the road (will have to manipulate contours further).
Thank you.
04-17-2013 02:37 AM
I suppose I will have to do some sort of interpolation to retreive the contour files if I'm not mistaken. There are quite a lot of posts dealing with similar questions but they're all using graph functionality which is not availablein LV anymore due to the graphs being replaced with 3D graphs, and there is not enough documentation on this subject.
On another note, how is it possible to convert 3D scatter plot presentation to an x-y plane? I know that it can easily be mapped to x-y plane for presentation purposes, but I'd like to be able to move the cursor around this x-y plane and retreive the x,y and z- values (this does not seem to be directly available from the mapped x-y presentation from the right-click menu).
Thanks in advance for any opinions and guidance.
04-19-2013 03:33 AM
Hi monotone!
The function you're looking for I believe is a matrix conversion. So from the XYZ triplet coordinates you need to create an X' and Y' axis with the values, as well as a Z' matrix with the point data for every single (x,y) coordinate pair.
As far as I'm aware, this functionality is not natively available in LabVIEW. It is available in DIAdem though, and I also found a few implementations in other languages, like this one.
As for your second question, the simplest approach is to use cursors. Create a cursor and move it around, and you'll be able to read x, y and z values on the front panel, as well as programmatically.
Please tell me if you have other questions.
Best regards:
Andras Valko
NI Hungary
04-19-2013 07:33 AM - edited 04-19-2013 07:33 AM
You can use the
to create the Z matrix.
Cheers
Edgar
04-25-2013 08:43 PM
Thanks for the replies guys, I'll give it a go with 2D arrays.
Cheers,
Milan