Structure of TestStand Executions

NI TestStand 2014 Help

Edition Date: August 2014

Part Number: 370052N-01

»View Product Info
Download Help (Windows Only)

Purpose

This example demonstrates the concepts of executions, threads, and call stacks and shows how they interact. The example also shows how you can use the Call Stack Pane and the Threads pane to view the current status of an execution.

Example File Location

<TestStand Public>\Examples\Fundamentals\Structure of TestStand Executions\Structure of TestStand Executions.seq

Highlighted Features

Major API

None

Prerequisites

None

How to Use This Example

Complete the following steps to review the sequences and steps in the example.

  1. On the Sequences pane, select the MainSequence. This sequence contains three Sequence Call steps, which represent three distinct methods of calling a subsequence.
  2. Click the Call SubSequence step and navigate to the Module tab of the Step Settings pane. Notice that the Execution Options for this sequence call are set to None, which indicates that this sequence does not execute in a new thread or execution.
  3. Click the Call NewThread step and navigate to the Execution Options of this step. Notice that this sequence call is set to execute in a new thread, which means that execution of the MainSequence continues as the New Thread sequence executes.
  4. Click the Call NewExecution step and navigate to the Execution Options of this step. Notice that this sequence call is set to execute in a new TestStand execution, which means that TestStand manages execution of the NewExecution sequence independently from the current execution.

Complete the following steps to run the example.

  1. Select Execute»Single Pass to run the sequence.
  2. During execution, message prompts explain the structure of TestStand executions. After you dismiss each message, the corresponding Sequence Call step executes, and TestStand automatically pauses execution so you can examine each concept being demonstrated.
  3. When you are ready to continue to the next step in the example, click the green Resume button on the debug toolbar. This process repeats until execution completes.

WAS THIS ARTICLE HELPFUL?

Not Helpful