Skip to Main Content Skip to Search
Product Documentation

xPCReOpenPort - Reopen communication channel

Prototype

int xPCReOpenPort(int port);

Arguments

port

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

Return

The xPCReOpenPort function returns 0 if it successfully reopens a connection. If there is an error, this function returns -1.

Description

The xPCReOpenPort function reopens the communications channel pointed to by port. The difference between this function and xPCOpenSerialPort or xPCOpenTcpIpPort is that xPCReOpenPort uses the already existing settings, while the other functions need to be set up properly.

See Also

API functions xPCOpenTcpIpPort, xPCClosePort

  


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