|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.
<TestStand Public>\Examples\Fundamentals\Termination Monitor\LabVIEW\Termination Monitor.seq
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 The Termination Monitor palette VIs to not require the LabVIEW development system. This requirement applies only to 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: