ApplicationMgr.ExitCode
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
ApplicationMgr.ExitCode
Syntax
ApplicationMgr.ExitCode
Data Type
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:
| Status | Exit Code |
|---|---|
| Run-time Error | the error code of the run-time error |
| Normal Exit | 0 |
| Command-line Error | 1 |
| Sequence Failed | 2 |
| Sequence Terminated | 3 |
| Sequence Aborted | 4 |
| Killed Threads | 5 |
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.