Purpose

This example demonstrates how to use LabWindows/CVI to show step execution progress and status in the TestStand Sequence Editor or Execution window.

Example File Location

<TestStand Public>\Examples\Modifying User Interfaces\Updating the Status Bar Using UI Messages\CVI\Updating the Status Bar Using UI Messages.seq

Highlighted Features

  • LabWindows/CVI Adapter
  • Execution

Major API

  • SequenceContext
  • Thread
  • Thread.PostUIMessage
  • UIMessageCodes Enumeration

Prerequisites

None

How to Use This Example

Complete the following steps to use this example.

  1. Open the DisplayingProgressAndStatus.c source file, located in the <TestStand Public>\Examples\Modifying User Interfaces\Updating the Status Bar Using UI Messages\CVI directory. The source file specifies the following functionality:
    • Lines 29 and 46—The tsErrChkMsgPopup function uses TS_ThreadPostUIMessage to post a ProgressPercent user interface (UI) message that updates the progress bar the sequence displays in TestStand with the percent complete.
    • Lines 33 and 43—The tsErrChkMsgPopup function uses TS_ThreadPostUIMessage to post a ProgressText UI message to update the progress text on the status bar with the percent finished.
  2. Close the source file. Do not save any changes.
  3. In TestStand, select Execute»Single Pass to run the sequence. Review the progress bar and progress status field on the status bar of the sequence editor.