HXP Command Interface Manual
2.0 Command Interface
2.1 Constructor
Syntax
HXP()
Decription
The constructor is used to create an instance of the HXP device.
2.2 Functions
2.2.1 OpenInstrument
Syntax
C# prototype
int OpenInstrument (string Address, int port)
Python prototype
[Return] OpenInstrument (Address, Port)
Parameter
Input parameters
None
Output parameters
(string) Address: TCP IP address controller
(int) Port: TCP IP port
Return
(int) error code: 0 in success and -1 on failure
Description
This function is used to open the communication with the controller. A socket is created
and the TCP IP connection is established. Refer to the HXP Programmer’s manual to
get the command description.
2.2.2 CloseInstrument
Syntax
C# prototype
int CloseInstrument ()
Python prototype
[Return] CloseInstrument ()
Parameter
Input parameters
None
EDH0318En1042 — 12/18 2