Converts coordinates between the Cartesian, spherical, and cylindrical coordinate systems. Wire data to the Axis 1 input to determine the polymorphic instance to use or manually select the instance.


icon

Inputs/Outputs

  • cdbl.png axis 1

    axis 1 specifies the X-coordinate in a Cartesian coordinate system, rho-coordinate in a cylindrical coordinate system, or radius-coordinate in a spherical coordinate system.

  • cdbl.png axis 2

    axis 2 specifies the Y-coordinate in a Cartesian coordinate system, theta-coordinate in a cylindrical coordinate system, or theta-coordinate in a spherical coordinate system.

  • cdbl.png axis 3

    axis 3 specifies the Z-coordinate in a Cartesian coordinate system, z-coordinate in a cylindrical coordinate system, or phi-coordinate in a spherical coordinate system.

  • cu16.png conversion type

    conversion type specifies the type of conversion to perform.

    0Cartesian to spherical (default)
    1spherical to Cartesian
    2Cartesian to cylindrical
    3cylindrical to Cartesian
    4spherical to cylindrical
    5cylindrical to spherical
  • idbl.png axis 1 out

    axis 1 out returns the coordinate on the first axis in the new coordinate system.

  • idbl.png axis 2 out

    axis 2 out returns the coordinate on the second axis in the new coordinate system.

  • idbl.png axis 3 out

    axis 3 out returns the coordinate on the third axis in the new coordinate system.

  • 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.

  • The following illustrations show a point P in different three-dimensional coordinate systems:

    The Cartesian, or rectangular, coordinate system is the most widely used coordinate system. The cylindrical coordinate system is a generalization of two-dimensional polar coordinates to three dimensions. The following equations describe the relationship between a Cartesian coordinate and a cylindrical coordinate:

    x = ρ · cosθ, y = ρ · sinθ, z = z

    ρ is the radial coordinate, and θ (–π < θ ≤ π) is the azimuthal coordinate.

    The spherical coordinate system is a system of curvilinear coordinates that is natural for describing positions on a sphere. The following equations describe the relationship between a Cartesian coordinate and a spherical coordinate:

    x = r · sinϕ · cosθ, y = r · sinθ · sinϕ, z = r · cosϕ

    r is the distance from point P to the origin. θ (–π < θ ≤ π) is the azimuthal angle, and ϕ (0 ≤ ϕ ≤ π) is the polar angle.