XPS Unified Programmer’s Manual
7.2.2.59 ZygoSendAndReceive
Name
ZygoSendAndReceive – Send a command and read a response from ZYGO box.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
Description
Send a command to ZYGO box and wait a response from ZYGO box.
The command string must be defined in the ZYGO format.
Prototype
int ZygoSendAndReceive(
int SocketID,
char * Command,
char * Response
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
Command char * “AXIS1” or “AXIS2”.
Register char * Command to send to ZYGO box.
Output parameters
Response char * Response read from ZYGO box.
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
• 0: No error.
• -2: TCP timeout.
• -1000: Zygo command execution failed.
• -1001: The controller is not connected to Zygo TCP server. Run
ZygoStartInterferometer API.
• Zygo errors: Refer to section 8.9: “Error List”.
EDH0373En1023 — 01/18 658