EasyManua.ls Logo

Newport XPS-Q8 - Page 28

Newport XPS-Q8
66 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-Q8 Tcl Manual
This way of error management is also used with Tcl scripts that get generated by the Tcl
generator, see Terminal of the XPS web interface. The procedure for displaying errors
and closing the TCP connection is as described above. The DisplayErrorAndClose
procedure can be used for each API in which the following code is used:
# Operation
set ErrorCode [catch "GroupInitialize $socketID S"]
# Error management
if {$ErrorCode != 0} {
DisplayErrorAndClose $socketID $code "GroupInitialize"
return
}
If an error occurs, the script returns the first error found, and indicates the API name
that generated the error. Providing the error number as well as corresponding
description. The execution of the script is stopped.
For instance, if we ask an initialized group to initialize again, the example code above
returns the following error:
EDH0307En1041 — 10/17
22

Table of Contents

Other manuals for Newport XPS-Q8

Related product manuals