Documentation

xPCDeRegisterTarget

Delete target communication properties from Simulink Real-Time API library

Prototype

void xPCDeRegisterTarget(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Description

The xPCDeRegisterTarget function causes the Simulink® Real-Time™ API library to completely “forget” about the target communication properties. Use this function to end a session in which you use xPCOpenConnection and xPCCloseConnection to connect and disconnect from the target without entering the properties each time. It works similarly to xPCClosePort, but does not close the connection to the target computer. Before calling this function, you must first call the function xPCCloseConnection to close the connection to the target computer. The combination of calling the xPCCloseConnection and xPCDeRegisterTarget functions has the same result as calling xPCClosePort.

Introduced before R2006a

Was this topic helpful?