Hi all,
I'm having trouble with converting X, Y, Z coordinates into a usable format so that they can be used in a 3D surface plot. The values are taken in various circular patterns within a circular object. Example of the scan pattern shown below.
![Linty_C_1-1668529002165.png Linty_C_1-1668529002165.png](https://forums.ni.com/t5/image/serverpage/image-id/310398i29E1F66FFA024C34/image-size/medium?v=v2&px=400)
The scan takes a set of 625 evenly spaced (except for the few at the bottom of the outer most ring) data points in a counter-clockwise movement. I've used Excel to create a Z-matrix of the data in the correct scan orientation.
Plotting the raw data gives me this.
![Linty_C_6-1668531389844.bmp Linty_C_6-1668531389844.bmp](https://forums.ni.com/t5/image/serverpage/image-id/310408i4F188551B1DF4F74/image-size/medium?v=v2&px=400)
Plotting the Z-matrix gives me this.
![Linty_C_4-1668530821249.png Linty_C_4-1668530821249.png](https://forums.ni.com/t5/image/serverpage/image-id/310406iBE8F1B9F48C1FADF/image-size/medium?v=v2&px=400)
My goal is to translate the data into something similar to this.
![Linty_C_5-1668531289126.bmp Linty_C_5-1668531289126.bmp](https://forums.ni.com/t5/image/serverpage/image-id/310407i46A1D7023F931245/image-size/medium?v=v2&px=400)
So, I suppose that my questions are:
- What is the best way to transpose the X, Y, Z data into a Z-matrix in LabVIEW so that I don't need to do it in Excel? Is that even needed for what I'm trying to accomplish?
- How do I transform these values into the picture above? Would converting to polar values first help?
- In the past, although the same item was scanned, the data that was created was a 200 x 200 Z-matrix that was already in the correct 'shape'. This data set is only a 25 x 25 square.
Thanks in advance for the help.