Wraps the input angle to a value within the range you specify with angle range.

Wire data to any of the angle inputs to determine the polymorphic instance to use or manually select the instance.


icon

Inputs/Outputs

  • ci32.png angle units

    angle units specifies the units of the input and output angles of the VI.

    0radian in, radian out (default)
    1radian in, degree out
    2degree in, degree out
    3degree in, radian out
  • c1ddbl.png Angle In

    angle in specifies the input angle the VI wraps.

  • cu16.png angle range

    angle range specifies the range of angle out.

    0none—The VI does not wrap the input angle. The range is [—Inf, Inf].
    1–180 to 180 (–pi to pi) (default)—The VI wraps the input angle to a range of [–180, 180] in degrees or [–pi, pi] in radians.
    20 to 360 (0 to 2pi)—The VI wraps the input angle to a range of [0, 360] in degrees or [0, 2pi] in radians.
  • i1ddbl.png Angle Out

    angle out returns the angle within angle range.

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

  • This VI wraps an angle to a value within the angle range you specify.

    For example, if angle units is degree in, degree out and angle range is 0 to 360, the VI wraps the angle according to the following formula.

    y = x – 360 * floor(x/360)

    where x is angle in and y is angle out.