Skip to Main Content Skip to Search
Product Documentation

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

Prototype

void xPCClosePort(int port);

Arguments

port

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

Description

The xPCClosePort function closes the RS-232 or TCP/IP communication channel opened by either xPCOpenSerialPort or by xPCOpenTcpIpPort. Calling this function is equivalent to calling xPCCloseConnection and xPCDeRegisterTarget.

See Also

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

Target object method xpctarget.xpc.close

  


Related Products & Applications

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

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