Calculates and returns the contour lines of a surface and the contour graph.

You must manually select the polymorphic instance to use.


icon

Inputs/Outputs

  • c1ddbl.png X

    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.

  • c1ddbl.png Y

    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.

  • c2ddbl.png Z

    Z is the 2D array that specifies values of the surface.

  • ci32.png number of heights

    number of heights specifies the number of contour lines the VI calculates. The default is 10.

  • i1dcclst.png Contour Graph

    Contour Graph returns an XY graph that draws the contour lines.

  • i1dcclst.png Contour Line

    Contour Line returns an array of the contour lines. Each element of the array contains the contour lines for each height.

  • idbl.png height

    height returns the height of the contour line.

  • i1dcclst.png Contour Segments

    Contour Segments returns an array of the contour lines at height.

  • i1ddbl.png X

    X returns the x-coordinates of the contour line.

  • i1ddbl.png Y

    Y returns the y-coordinates of the contour line. The first point to form at (X, Y) is different from the last point.

  • ibool.png closed?

    closed? indicates that all points form a closed contour line if TRUE. If FALSE, the contour line is open.

  • ii32.png error

    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.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Geometry\Contour Line Plot.vi