Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

xPCCloseConnection - Close RS-232 or TCP/IP communication connection

Prototype

void xPCCloseConnection(int port);

Arguments

port

Enter the value returned by either the function xPCOpenSerialPort or the function xPCOpenTcpIpPort.

Description

The xPCCloseConnection function closes the RS-232 or TCP/IP communication channel opened by xPCOpenSerialPort, xPCOpenTcpIpPort, or xPCOpenConnection. Unlike xPCClosePort, it preserves the connection information such that a subsequent call to xPCOpenConnection succeeds without the need to resupply communication data such as the IP address or port number. To completely close the communication channel, call xPCDeRegisterTarget. Calling the xPCCloseConnection function followed by calling xPCDeRegisterTarget is equivalent to calling xPCClosePort.

See Also

API functions xPCOpenConnection, xPCOpenSerialPort, xPCOpenTcpIpPort, xPCReOpenPort, xPCRegisterTarget, xPCDeRegisterTarget

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS