XPS Unified
4.0
TCP/IP Support Functions
To ease the use of the TCP/IP communication, few functions have been develop by
Newport. These functions uses the Microsoft System.Net.Sockets.
4.1
OpenInstrument
Name
OpenInstrument – Create and open a socket.
Description
This function is used to create and open a socket. Send Timeout is set to 1 second
Prototype
int OpenInstrument (string IP_Address, int Port, int ReceiveTimeout)
Input parameters
IP_Address
Port
Timeout
Output parameters
None.
Return
• 0: No error.
• -1: Error of socket open.
string
IP address of instrument.
int
Port number.
int
ReceiveTimeout in milliseconds.
11
Programmer's Manual
EDH0373En1023 — 01/18