Owning Palette: Computational Geometry VIs
Requires: Full Development System
Calculates and returns the contour lines of a surface and the contour graph.
You must manually select the polymorphic instance to use.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
X specifies the x-coordinates of the surface. If X is not empty, the length of X must equal the number of columns in Z. If X is empty, this VI gives X values of [0, 1, �, N – 1], where N is the number of columns in Z. |
|||||||||||
Y specifies the y-coordinates of the surface. If Y is not empty, the length of Y must equal the number of rows in Z. If Y is empty, this VI gives Y values of [0, 1, �, M – 1], where M is the number of rows in Z. |
|||||||||||
Z is the 2D array that specifies values of the surface. | |||||||||||
number of heights specifies the number of contour lines the VI calculates. The default is 10. | |||||||||||
Contour Graph returns an XY graph that draws the contour lines. | |||||||||||
Contour Line returns an array of the contour lines. Each element of the array contains the contour lines for each height.
| |||||||||||
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
X specifies the x-coordinates of the surface. If X is not empty, the length of X must equal the number of columns in Z. If X is empty, this VI gives X values of [0, 1, �, N – 1], where N is the number of columns in Z. |
|||||||||||
Y specifies the y-coordinates of the surface. If Y is not empty, the length of Y must equal the number of rows in Z. If Y is empty, this VI gives Y values of [0, 1, �, M – 1], where M is the number of rows in Z. |
|||||||||||
Z is the 2D array that specifies values of the surface. | |||||||||||
height specifies the height where the VI calculates the contour line. | |||||||||||
Contour Graph returns an XY graph that draws the contour lines. | |||||||||||
Contour Line returns the contour line at height.
| |||||||||||
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
X specifies the x-coordinates of the surface. If X is not empty, the length of X must equal the number of columns in Z. If X is empty, this VI gives X values of [0, 1, �, N – 1], where N is the number of columns in Z. |
|||||||||||
Y specifies the y-coordinates of the surface. If Y is not empty, the length of Y must equal the number of rows in Z. If Y is empty, this VI gives Y values of [0, 1, �, M – 1], where M is the number of rows in Z. |
|||||||||||
Z is the 2D array that specifies values of the surface. | |||||||||||
Heights specifies an array of heights where the VI calculates the contour line. | |||||||||||
Contour Graph returns an XY graph that draws the contour lines. | |||||||||||
Contour Line returns an array of the contour lines. Each element of the array contains the contour lines for each height.
| |||||||||||
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Contour lines of a surface are line segments that connect points at the same height, as shown in the following equation.
f(x,y) = h
The following image provides an example of an open contour line and a closed contour line.
Refer to the Contour Line Plot VI in the labview\examples\Mathematics\Geometry directory for an example of using the Contour Line VI.