EasyManuals Logo

Newport XPS-D Programmer's Manual

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
Page #224 background imageLoading...
Page #224 background image
XPS Unified Programmer’s Manual
7.2.1.137 OpenConnection
Name
OpenConnectionopens a socket to connect to TCP server (local).
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks number of used sockets (Max = 100): if no free socket then the SocketID is
set to -1.
Description
This function opens a socket in a TCL script located in the “Scripts” directory of the
XPS controller.
The TCP/IP communication is configured as:
Local Host Address = 127.0.0.1
IP Port = 5001
This function returns a socket identifier to use for each function call. The socket
identifier is defined between 0 to 99. If the TCP/IP connection fails then the “SocketID”
value is 1.
Prototype
int OpenConnection(
int TimeOut,
int SocketID
)
Input parameters
TimeOut int Timeout in seconds used for each function
execution.
SocketID int Socket identifier used in each function.
Output parameters
None.
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
0: No error.
EDH0373En1023 01/18 210

Table of Contents

Other manuals for Newport XPS-D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Newport XPS-D and is the answer not in the manual?

Newport XPS-D Specifications

General IconGeneral
BrandNewport
ModelXPS-D
CategoryController
LanguageEnglish

Related product manuals