Overriding PreUUT and PostUUT Parallel Model Callbacks

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Purpose

This example demonstrates how to override the default UUT Information dialog box in the Parallel process model, override the ModelOptions callback to disable the default dialog box, and override the PreUUT callback to define a new method for obtaining the serial number. Optionally, you can override the PostUUT callback to obtain the status of a test socket after it finishes a run.

Example File Location


Open Example

<TestStand Public>\Examples\Modifying Process Models\Overriding Model Callbacks - Parallel Model\Overriding PreUUT and PostUUT Callbacks.seq

Highlighted Features

Parallel process model

Major API

None

Prerequisites

None

How to Use This Example

Complete the following steps to run this example.

  1. Select Execute»Test UUTs to run the sequence. Each test socket in the parallel execution launches a UUT Information dialog box that prompts you to enter a serial number. The dialog boxes launch because the default UUT Information dialog box for the Parallel process model has been disabled.
  2. Enter any serial number in each UUT Information dialog box and click OK.
  3. Click OK when TestStand displays the results of each test.
  4. Click Cancel in each UUT Information dialog box to stop executing each test socket. Each Execution window displays a report.
  5. Select Window»Close Completed Executions to close all the Execution windows.

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

  1. On the Sequences pane, select the ModelOptions callback sequence.
  2. On the Steps pane, select the Change setting to not show dialog step, which is a Statement step.
  3. On the Step Settings pane, click the Expression edit tab. The Expression control specifies an expression that disables the default UUT Information dialog box for the Parallel process model.
  4. On the Sequences pane, select the PreUUT callback sequence. This sequence specifies two Action steps that use the C/C++ DLL Adapter and call a DLL that returns screen size information TestStand uses to determine where the new dialog boxes need to launch on the screen. The TestSocket Serial Num Message Popup step, which is a Message Popup step, requests the serial number for each test socket TestStand executes in parallel.

You can complete the following steps to re-enable the default UUT Information dialog box.

  1. On the Sequences pane, select the ModelOptions callback sequence.
  2. On the Step Settings pane for the Change setting to not show dialog step, click the Properties tab.
  3. Click Run Options on the Properties tab to show the Run Options panel.
  4. Select Skip from the Run Mode ring control.
  5. Select Execute»Test UUTs to run the sequence. Click No when TestStand prompts you to save changes to the sequence file. The default UUT Information dialog box launches to prompt you to enter test socket serial numbers.
  6. Close the sequence file and do not save any changes.

WAS THIS ARTICLE HELPFUL?

Not Helpful