Checks whether one or multiple input angles are within the counterclockwise 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
  • cdbl.png angle in

    angle in specifies the input angle the VI checks.

  • cdbl.png start angle

    start angle specifies the angle at the beginning of the range. The range continues in the counterclockwise direction.

  • cdbl.png end angle

    end angle specifies the angle at the end of the range. end angle must have the same unit as the start angle.

  • cu16.png output angle range

    output angle range specifies the range of the output angle. When the angle exceeds one side of the range, the angle continues on the opposite side of the range.

    0none—The range is [–Inf, Inf].
    1–180 to 180 (–pi to pi) (default)—The range is [–180, 180] in degrees or [–pi, pi] in radians.
    20 to 360 (0 to 2pi)—The range is [0, 360] in degrees or [0, 2pi] in radians.
  • cbool.png coerce angle

    coerce angle determines whether angle out is in the range when angle in is not in range. If FALSE, angle out returns the same value as angle in. If TRUE, angle out returns the value of the angle that is nearest to the beginning or end of the range.

    coerce angle does not do anything when angle in is in the range.

  • idbl.png angle out

    angle out returns angle in if coerce angle is FALSE. If coerce angle is TRUE and angle in is between the range of start angle and end angle, angle out also returns angle in.

    If coerce angle is TRUE and angle in is out of the range, the VI coerces angle out to the nearest angle in the range.

  • ibool.png in range?

    in range? returns whether angle in is between start angle and end angle.

  • 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 image shows an example of the input angle within the range from the start angle to the end angle.

    The following image shows an example of the input angle out of the range from the start angle to the end angle.

    If you use this VI to check whether a range includes the angle in the previous image, the VI coerces angle out to start angle if coerce angle is TRUE.