Documentation

xPCGetSessionTime

Return length of time Simulink Real-Time kernel has been running

Prototype

double xPCGetSessionTime(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

Returns the amount of time in seconds that the Simulink® Real-Time™ kernel has been running on the target computer. If the function detects an error, it returns -1.

Description

The xPCGetSessionTime function returns, as a double, the amount of time in seconds that the Simulink Real-Time kernel has been running. This value is also the time that has elapsed since you last booted the target computer.

Introduced in R2008b

Was this topic helpful?