Conditional Repeat

LabVIEW SignalExpress

Conditional Repeat

Repeats the sequence of steps inside the loop until one or more conditions are met. To add a condition, click the Add button in the Input Configuration section and select an appropriate input variable. The variable can be a Boolean or scalar result. You can use a Boolean signal as an exit condition directly, or you can compare a scalar value to a constant value. Select the comparison criteria using the Criterion pull-down menu.

You can combine several conditions into a single exit condition using Group operation. Select AND if you want to exit the loop when all the conditions are true. Select OR if you want to exit as soon as at least one of the conditions is met. You can invert the exit condition by removing the checkmark in the Exit if True checkbox.

ParameterDescription
Input ConfigurationContains the following options:
  • Add—Adds an input variable to the condition list.
  • Remove—Removes the input variable you select from the condition list.
  • Loop conditions—Displays the current conditions for the Conditional Repeat step.
  • Input signal—Specifies the input signal (variable) to be used with the specified conditions.
  • Criterion—Specifies the comparison criterion for the selected input scalar variable.
  • Value—Constant value used to compare with the selected variable.
  • Invert input—Inverts the selected input Boolean variable.
Exit ConditionContains the following options:
  • Group operation—Combines several conditions into an Exit condition. Select AND if you want to exit the loop when all the conditions are true. Select OR if you want to exit as soon as at least one of the conditions is met.
  • Exit if True—Determines if the loop exits when the overall exit condition is true or false.