StepSearch Step In-Place Editing

A StepSearch statement executes a counter-type loop until the loop condition evaluates to `false'. Such a statement could prove useful, for example, when you want to iterate over a discrete set of values like in the case of a For statement, but wish to interrupt the iteration once a given condition is no longer met, without going through the remaining values.

To edit a StepSearch script step:

  1. Select the step in the Script Steps table.
  2. Edit the step parameters as follows:
    • Session: This column displays no session at all.
    • Return Variable: This step type does not return any variable.
    • Command String: Depending on the statement, initial or ending, the following is displayed:
      • StepSearch statement: Displays the loop variable, the returned loop index value (the variable value that corresponds to the last successful iteration (condition evaluating to true) for Best, or the variable value that corresponds to the last iteration (condition evaluating to false) before completing execution of the command for Last), initial value, the end value, and the increment.

Click into the column and edit in-place the variable name or the looping condition values.

      • StepCondition statement: Displays the looping condition.

Click into the column and define an expression by editing it in-place.

Alternatively, click the button and create a valid expression using the Expression Builder GUI, as described in Using the Composer Expression Builder.

Example:

  StepSeach Best frameRate in (10 100 10)
    Assign fR $frameRate
    Configure FrameRateSet ports=(1.1.1) streamno="1"
    rate="$fR" rateMode=streamRateModePercentRate
    Transmit Start ports=(1.1.1)
    frameLoss Get Stat ports=(1.1.2) stats=frameLoss
 SearchCondition $frameLoss == 0
 EndStepSearch