09-24-2009 09:47 AM - edited 09-24-2009 09:54 AM
3D Graphs certainly have a bit of a learning curve to them, but much less than say the 3D Picture Control. Today we'll play with perhaps the easiest of the 3D graphs, the 3D Surface Plot. Drop this control on your FP and as usual LV will drop a helper VI on the BD for you. All you need to do for this Graph is provide a 2D array of z-values. If your points aren't evenly space or you want the x and y values to make sense you can add x and y arrays which specify the points you sample in x and y. Pretty simple, just keep in mind that you are specifying a grid in X and Y.
I have attached a simple example (in LV 8.6) which plots Jv(r)*cos(m*theta) where Jv(r) is the Bessel function. A lot of properties to play with, I still haven't tried to change them programmatically. I am used to the LV8.2 variety where everything was done with control references. The new way must be better, it's still new to me. (Not helpful help in LV8.6). Another thing I noticed is my usual NaN trick to make plots invisible throws the 3D graph for a loop. I am often plotting over a cylindrical domain so I make points outside the desired radius equal to NaN. It works, it is just really slow to render. In this case, if r>xmax I just set r=rmax to I get a constant z outside the circle.
VIOTD groundrules here.
09-24-2009 10:04 AM
Darin.K wrote:3D Graphs certainly have a bit of a learning curve to them, but much less than say the 3D Picture Control.
... A lot of properties to play with, I still haven't tried to change them programmatically....
As I mentioned in this thread, use the 3d properties dialog box as a guide to how to do the same thing programatically. This image illustrates the idea.
Ask if you have Q's,
Ben
09-24-2009 10:09 AM
09-24-2009 10:24 AM
Sorry Darin , I thought you were talikng about the CW version.
Forget my last.
Ben
09-24-2009 10:35 AM - edited 09-24-2009 10:41 AM
It is still good information. I may be sticking to that version anyway.
It does seem that the Property Node for the indicator gives me control of most of the properties I'd like.
09-24-2009 10:37 AM