4 xtc3open, 5 xtc3close, 6 example – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 17
1 - 3
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.2.1.4 XTC3Open
TC_ERROR XTC3Open();
Description
This function opens the serial port set previously.
Arguments
None
Returns
A TC_ERROR is returned if the port in question can not be opened.
If the port is successfully opened, a TC_E_SUCCESS value is returned.
TC_E_PORT_UNAVAILABLE is returned if the port is being used by another
application, such as HyperTerminal, for example.
1.2.1.5 XTC3Close
TC_ERROR XTC3Close();
Description
This function closes the serial port previously opened.
Arguments
None
Returns
A TC_ERROR is returned if the port in question can not be closed.
If the port is successfully closed, a TC_E_SUCCESS value is returned.
1.2.1.6 Example
SetXTC3Port(1);
SetBaud(115200);
SetTimeOut(3000);
If(XTC3Open()==TC_ERROR)
printf(“Cannot open serial port");
//..........application code
XTC3Close();