LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Plot a 3D graph using 2D array?

Hi guys,

 

I got a 2D array. How should I plot a 3D surface graph using the 2D data.

2D array.png

I need column 0 to be x coordinate, column 1 to be y coordinate and column 2 to be z coordinate. Thanks!!! 

0 Kudos
Message 1 of 22
(7,309 Views)

See this thread to review examples.

 

The "Car" example is just waiting for you r copy your data into it.

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 22
(7,304 Views)

Hi Ben,

 

Actually the data I posted is just a portion of my 2D array. I have a total of 1369 data. I do not have any knowlege with 3D graph. However, I need to complete it by tomorrow. Can you guide me to complete this 3D data. I had look at the "Car" example at here, but cannot open the vi it says set plot color map and transparency is missing is this provided in the labview library? Thanks!!!

0 Kudos
Message 3 of 22
(7,298 Views)

@Nextal wrote:

Hi Ben,

 

Actually the data I posted is just a portion of my 2D array. I have a total of 1369 data. I do not have any knowlege with 3D graph. However, I need to complete it by tomorrow. Can you guide me to complete this 3D data. I had look at the "Car" example at here, but cannot open the vi it says set plot color map and transparency is missing is this provided in the labview library? Thanks!!!


 

Check this thread for the sub-VIs.

 

Re: " However, I need to complete it by tomorrow. Can you guide me to complete this 3D data".

 

[Set tongue in cheek mode = true]

 

Yes I am capable.

 

Am I allowed?

 

Do you have a credit card?

 

[Set tongue in cheek mode = false]

 

Chase down those links, review the examples. Iposted those to make it possible for people to figure out the 3D graphs so you can do it without my help.

 

"Gird up your loins" and go for it!

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 22
(7,288 Views)

Hi Ben,

 

I look through some of your post but is still quite unsure how to get my 3D graph out.

Can you explain to me how do I get the x,y & z matrix from my 2d data? I need to use 3D surface instead of 3D Parametric Surface so can I just replace that? Thanks for explaining!!! The attachment is my sample data that I will be plotting.

0 Kudos
Message 5 of 22
(7,279 Views)

Have you played with the Car example?

 

You should work with that until you get an idea how the various arrays are used.

 

Once you get a handle on how the arrays are used your work should amount to formatting the data and that is just array manipulations.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 22
(7,275 Views)

If you are having trouble with building the arrays post an IMAGE* of your code and I may be able to offer advice.

 

Ben

 

* You have a 1 in twelve chance of having the same version of LV as I do and if it isn't LV 7.1, I can't look at the code. 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 22
(7,268 Views)

The only array I have is this image. I had build it from my detector after 1 day.

result.png

This is only a portion of the data but I still have the complete array with all the data. The complete example can be view in the text files. What I want to do now is just let column 0 be x, column 1 be y and column 2 be z. 

 

 

 

 

 

 

 

 

0 Kudos
Message 8 of 22
(7,265 Views)

If you do not post code showing your work, I will can be of no help to you.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 22
(7,257 Views)

Hi Ben,

 

Sorry if you need code of the program with detector codes, I don't have it now. I am not at my workspace. This program took around 25 hours to run and acquire all the datas. Currently, I only have the data with me at home.

 

0 Kudos
Message 10 of 22
(7,254 Views)