Check for Included Angle (scalar) VI
- Updated2025-07-30
- 4 minute(s) read
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.

Inputs/Outputs
angle units
—
angle units specifies the units of the input and output angles of the VI.
angle in
—
angle in specifies the input angle the VI checks.
start angle
—
start angle specifies the angle at the beginning of the range. The range continues in the counterclockwise direction.
end angle
—
end angle specifies the angle at the end of the range. end angle must have the same unit as the start angle.
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.
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.
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.
in range?
—
in range? returns whether angle in is between start angle and end angle.
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.
angle units
—
angle in
—
output angle range
—
coerce angle
—
angle out
—
in range?
—
error
—