LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d graph line segment

Hi:
I'm trying to find a way to draw a series of x,y,z points to a 3d graph with each point linked to the last with a line segment.  I have been successfull in plotting a series of points to the 3d graph indicator in LabView but I cannot figure out how to connect them with line segments ... does anyone know how this might be done?  Thanks in advance for any help.
 
 
0 Kudos
Message 1 of 9
(3,917 Views)
Take a look at the mesh3D.vi in the graph examples.
0 Kudos
Message 2 of 9
(3,906 Views)
Thanks for the reply unclebump:
 
I looked at it.   I don't think that that is realy what I'm after.  I need the functionality of being able to rotate and move the graph around after it is plotted ... the active x version of the 3d graph (the one used in the 3d surface.vi) is what I would like to use but I was wondering if it is possible to draw line segments between each successive plot (x,y,z) using that particular active x indicator.  See image in attached word doc.
0 Kudos
Message 3 of 9
(3,900 Views)
Look at the 3D surface example. There is a plot style input that can be set to cwlinepoint. Can you post your code in 7.0 format??
0 Kudos
Message 4 of 9
(3,898 Views)
When the cwlinepoint property is activated the graph draws a line from each point to each point which is not what I'm trying to do ... the code I have written is extremely basic ... three 1d arrays each containing number set (one array with x coordinates, one array with y coords, ect.) these are then passed to the CWGraph3D invoke node ... then the points are plotted to the 3d graph as just points ... which is somewhat usable for what I am trying to do but I was surprised to find out that such a functionality was not already built in to LabView.  I thought that there would have been a relatively easy way to do it but I have not been able to find it on my own, so I thought I would put it out there and see if others had already figured it out.  My search of the forum yeilded nothing.  Again your help is greatly appreciated unclebump!!!  Find attached code.  Was written in Labview 7.1 but should be usable in 7.0 I think. 
0 Kudos
Message 5 of 9
(3,891 Views)

Greycat,

Is this more along the lines of what you are trying to do?  I apologize for the random data on the graph, I was just verifying that it does work as I expected. 

 

Andy F.

 

-----------------------------------------------------------------
National Instruments
0 Kudos
Message 6 of 9
(3,867 Views)
Hi Andy F.
Thanks for responding .. I'm intrigued ... sadly I get this error message (see attached doc) when tryin to load the vi.  Any suggestions -> I'm currently running LabVIEW 7.1 thought this was the most updated version ... is this so?
 
 
0 Kudos
Message 7 of 9
(3,862 Views)
That error usually means that the ActiveX control has associated itself with a newer version of LabVIEW.  To fix this just delete the ActiveX control I have and replace it.  Are you able to access the Basic Properties and 3D Curve VIs?  These are not available in the base package.  If not, they are basically just a invoke node and property node for the ActiveX control.  Hope this information helps!

Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 8 of 9
(3,854 Views)

THANKS Andy F.

I've figured it out ... I simply re-made your code into my LabVIEW and it worked perfectly.  That was exactly what I was looking for ... Once again - thank you very much!!!! 

 

0 Kudos
Message 9 of 9
(3,852 Views)