Example File Location

<TestStand Public>\Examples\Fundamentals\Using Sweep Loops\Sweep Loop Strategies Demo\Sweep Loop Strategies.seq

Highlighted Features

  • Sweep Loops

Major API

  • SetBreakSettings

Prerequisites

None

How to Use This Example

Complete the following steps to run the example:

  1. Select Execute»Run Mainsequence to execute the sequence
  2. When the first breakpoint is hit, ensure that Locals.SweepLoopParameterValues is added to the Watch Window during execution.
  3. At each breakpoint, observe the difference in the sweep loop strategies. The strategy for ConstantValue resets the variables value to the value set in the parameters list of the sweep loop even though it is incremented during an iteration of the loop. The strategy for CaptureValue retains the new value when a new iteration of the loop starts.