Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Using the 3D Curve Graph

1 ratings | 1.00 out of 5
Print
The 3D curve graph is the simplist of the 3D graphs. It allows the programmer to draw a three dimensional curve in space. The curve is specified by three vectors, corresponding to the X, Y, and Z coordinates of each point, respectively. Effectively, the curve is defined parametrically, where the index of the arrays is the parameter.

For example, the following 25 coordinates create the 3D curve shown:
Table 1.
0.00, 0.00, -2.04
0.26, 0.07, -2.02
0.46, 0.26, -1.97
0.55, 0.55, -1.89
0.51, 0.88, -1.77
0.32, 1.20, -1.62
0.00, 1.44, -1.44
-0.42, 1.56, -1.24
-0.88, 1.53, -1.02
-1.33, 1.33, -0.78
-1.71, 0.99, -0.53
-1.95, 0.52, -0.27
-2.04, 0.00, 0.00
-1.95, -0.52, 0.27
-1.71, -0.99, 0.53
-1.33, -1.33, 0.78
-0.88, -1.53, 1.02
-0.42, -1.56, 1.24
0.00, -1.44, 1.44
0.32, -1.20, 1.62
0.51, -0.88, 1.77
0.55, -0.55, 1.89
0.46, -0.26, 1.97
0.26, -0.07, 2.02
0.00, 0.00, 2.04


To use the 3D contour graph, place the control (Graph->3D Curve Graph) on your front panel. This creates the ActiveX control and the associated Plot 3D Curve VI:


Figure 1.

Then, simply wire up three arrays containing the X, Y, and Z coordinates of each point in the curve.


1 ratings | 1.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).