08-13-2008 09:13 AM
Hi, I'm trying to create a 3d shpere [i've doen that bit] with a number of vector lines out from the plot within the 3d enviroment,
can this be done by adding aditional plots, if so how can they be done??
The vector lines i'm trying to make will be controlled by a source, and destination coordiantes defined by: {theta, phi, r} - in sherical coordinates,
also can they be plotted as just lines, and idealy with arrows on the destination end??
Help!!
VI attatched, any help apreciated!!
08-14-2008 07:11 AM
08-14-2008 07:45 AM - edited 08-14-2008 07:46 AM
You can choose the coordinates system used when plotting. See here.
Ben
08-15-2008 02:18 AM
Hi i understood how to carry out corrdinate conversion, it was the format i was having issue with.
I'll givwe reply 1 a try, many thanks
08-15-2008 02:19 AM
Hi could you convert the labview edition from 8.5 to 8.2 for me??
my labview won't read it.
08-15-2008 03:49 AM
Apologies John, I made an incorrect assumption.
Please find the attached 8.2 code.
08-15-2008 04:15 AM
08-15-2008 05:07 AM
One last thing, i'd like to make the vi accept a number of vectors to plot, i've tried to do this using a for loop, and attatching the plot number to the plot number +1, but this seems to give one plots and the ball and then an error, if i set it to +2 it gives me both lines but no balls.
I'm a touch confused.
help is again very much apreciated!
see attatched!
08-15-2008 05:09 AM
Ah found it, there is a 'number of plots' part that has to include the ball as well as the lines
my bad.
08-15-2008 06:05 AM
Great news! I am guessing that, before you resolved your own issue, you were over writing the sphere plot. So, by adding two to the for loop iteration rather than one you are able to avoid this (i.e. during the first run of the for loop, you are writing to plot number 2, rather than overwriting the sphere in plot number 1).
John, for the sake of your fellow developers, could you please post your new and improved vi on here. That way, if another developer stumbles on to this thread they will have a prebuilt piece of code.
Thanks for your time John,
Best wishes,