Termination Monitor - LabVIEW

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)


This example demonstrates the use of the Termination Monitor VIs in LabVIEW. The Termination Monitor allows a code module to stop executing if TestStand attempts to terminate or abort the execution.

Example File Location

Open Example

<TestStand Public>\Examples\Fundamentals\Termination Monitor\LabVIEW\Termination Monitor.seq

Highlighted Features

Major API



To run this example, you must have the LabVIEW development system installed and you must configure the LabVIEW Adapter to use the LabVIEW development system.

Note Note  The Termination Monitor palette VIs to not require the LabVIEW development system. This requirement applies only to this example.

How to Use This Example

This example uses a LabVIEW Action step to call a VI that runs indefinitely. Since this VI uses the Termination Monitor functions, it is able to stop when TestStand attempts to terminate or abort the execution. If the VI did not include the Termination Monitor functions, TestStand would be unable to terminate or abort the execution.

To review the configuration of the VI, open Termination Monitor Example.vi located at <TestStand Public>\Examples\Fundamentals\Termination Monitor\LabVIEW\Termination Monitor Example.vi. In the VI, observe that the TestStand - Initialize Termination Monitor VI is used to create a reference to the Termination Monitor object.

Every 100 milliseconds, the TestStand - Get Termination Monitor Status VI is called to determine whether TestStand is attempting to stop the execution. If so, the VI exits.

Note that the Termination Monitor VIs require the SequenceContext of the calling sequence. The SequenceContext is passed to the code module as a parameter.

Complete the following steps to run the example:

  1. Select Execute»Single Pass to run the sequence.
  2. When the TerminationMonitorExample VI front panel appears, the sequence will execute indefinitely.
  3. On the Debug toolbar in TestStand, click the red Terminate button to terminate the execution. Observe that the execution terminates successfully.


Not Helpful