EasyManua.ls Logo

Newport XPS-D - 9 Process Examples; Management of Errors Example

Newport XPS-D
722 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
XPS Unified Programmer’s Manual
9.0 Process Examples
This section provides examples of programming sequences. The next diagrams show
the order of use of the different Functions. To see programming code examples, please
refer to the TCL Manual for TCL scripts.
9.1 Management of Errors Example
When an error occurs, it is desirable to analyze and fix the error. The following error
display and socket closing procedure is useful to detect and display the errors during the
execution of a program. This sequence could be added to each program and called each
time users need to test certain parts of a program.
Display error and close procedure:
error
Timeout
error?
YES
Get error description
ErrorStringGet
error?
YES
Display API name, number and
description of the error
Display Timeout error
Display API name, error code
and ErrorStringGet error
Close TCP socket
EDH0373En1023 01/18 688

Table of Contents

Other manuals for Newport XPS-D

Related product manuals