ExitCode Property

TestStand 2017 Help

Edition Date: November 2017

Part Number: 370052W-01

»View Product Info

Download Help (Windows Only)
NI TestStand 2014 Help
NI TestStand 2014 SP1 Help
TestStand 2016 Help
TestStand 2016 SP1 Help
TestStand 2017 Help

Syntax

ApplicationMgr.ExitCode

Data Type

Long

Purpose

Specifies the exit code of a user interface.

Remarks

The Application Manager control sets the value of this property based on the status of executions and uses the following exit codes to indicate the specified status:

StatusExit Code
Run-time Errorthe error code of the run-time error
Normal Exit0
Command-line Error1
Sequence Failed2
Sequence Terminated3
Sequence Aborted4
Killed Threads5

If a run-time error with a non-negative error code occurs, the exit code is -17009 (TS_Err_ConvertedErrorCode).

As a user interface developer, set the exit code of the application to this property. The development environment you use determines how you return an exit code in an application. LabVIEW does not support returning exit codes.

If you use a command line to run the user interface, you must use the start /wait command to obtain the exit code from a user interface, as follows:


start /wait TestExec -Quit -Run MainSequence SequenceFile1.seq

Use the –OutputToStdIO command-line flag to send additional status information for completed executions to standard output.


See Also

ApplicationMgr.ProcessCommandLine

WAS THIS ARTICLE HELPFUL?

Not Helpful