Documentation

xPCGetLoadTimeOut

Return timeout value for communication between development and target computers

Prototype

int xPCGetLoadTimeOut(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

Returns the number of seconds allowed for communication between the development computer and the real-time application running on the target computer. If the function detects an error, it returns -1.

Description

The xPCGetLoadTimeOut function returns the number of seconds allowed for communication between the development computer and the real-time application running on the target computer. When a Simulink® Real-Time™ API function initiates communication, it waits for some seconds before checking if the communication is complete. If communication with the target computer is not complete, the function returns a timeout error.

Use the xPCGetLoadTimeOut function if you suspect that the current number of seconds (the timeout value) is too short. Then use the xPCSetLoadTimeOut function to set the timeout to a higher number.

Introduced before R2006a

Was this topic helpful?