LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

4d plot from a 3d array

I was hoping I could get some help in plotting a 3d array into a 4d plot.  I currently have a 512x512x75 array where each point has a value.  It's simply represented in Labview by a 3d array.   I would like each value to be an intensity (preferably a shade of gray as opposed to different colors) at each point and the dimensions to be x,y,and z respectively.  I'm having a hard time getting there.  I have been trying to use a parametric graph that requires an x,y,z and w matix, but I can't quite get it.  I have looked at these posts:

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=143272&requireLogin=False

http://sine.ni.com/devzone/cda/epd/p/id/1796

 

What exactly do I wire to the matrix input from a regular 3d array? 

 

Thanks

 

 

0 Kudos
Message 1 of 6
(4,545 Views)

I think you can leave the W vector un-wired and it will work.

 

 

Otherwise wire the Z data to the W as well as the Z input. See also this thread.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 6
(4,522 Views)
Thanks for the reply, but I'm still a little confused.  I read the post you suggested, thanks for that.  The user in that post seemed to have 3-d data that was mapped to 4d by use of a colormap that turned one dimension into the 4th.  I have 4 independent dimensions x,y,z,intensity.  Maybe I'm wrong, so let me explain more detailed.  For simplicity, I could have a 3x3x3 cube where each point has a specific value, say 0-100. Maybe at 0,0,0 that value is 100 and all other points are 0.  The resulting plot would show a 3x3x3 cube that has the 0,0,0 spot very bright and all other spots dark so that the intensity of each point is dictated by the value at a particular x,y,z and not dependent on the z value.  In the case of the parametric plot I am unsure of what to wire into all the x,y,z,w matrices and how to extract that from my 3d array.
0 Kudos
Message 3 of 6
(4,511 Views)

Each point is decscribed by upto four values XYZW. The four values are built up by equivelently indexed values form weach of the values you pass in the 3 (or 4) 2d arrays.

 

Go to this thread and down load my car example and play with the values. It has a very small set of coordinates and could help you get your head around how you have to format your data to achieve your goal.

Here isa preview of what you will find there.

 

 

 

And

 

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 6
(4,500 Views)
I've lost track of how many times Ben has linked to that car thread, and every time I see it I still go "wow, that's cool".
Message 5 of 6
(4,496 Views)
Thanks Ben.  I'll take a look at the VI and post back to let you know how it turns out.
0 Kudos
Message 6 of 6
(4,486 Views)