cancel
Showing results for 
Search instead for 
Did you mean: 

3d graph line segment

Greycat
Member

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.
 
 
8 REPLIES 8
unclebump
Active Participant

Re: 3d graph line segment

Take a look at the mesh3D.vi in the graph examples.
Greycat
Member

Re: 3d graph line segment

Message contains an attachment
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.
unclebump
Active Participant

Re: 3d graph line segment

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??
Greycat
Member

Re: 3d graph line segment

Message contains an attachment
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. 
Highlighted
Andy F.
NI Employee (retired)

Re: 3d graph line segment

Message contains an attachment

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
Greycat
Member

Re: 3d graph line segment

Message contains an attachment
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?
 
 
Andy F.
NI Employee (retired)

Re: 3d graph line segment

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
Greycat
Member

Re: 3d graph line segment

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!!!!