Process Examples; Management Of Errors Example - Newport XPS Programmer's Manual

Xps unified series universal high-performance motion controller/driver
Hide thumbs Also See for XPS:
Table of Contents

Advertisement

XPS Unified
9.0
EDH0373En1023 — 01/18

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:
Display API name, error code
and ErrorStringGet error
Display Timeout error
688
Programmer's Manual
error
YES
Timeout
error?
Get error description
YES
ErrorStringGet
error?
Display API name, number and
description of the error
Close TCP socket

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xps-rlXps-qXps-d

Table of Contents