Documentation

xPCGetNumOutputs

Return number of outputs

Prototype

int xPCGetNumOutputs(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

Returns the number of outputs in the current real-time application. If the function detects an error, it returns -1.

Description

The xPCGetNumOutputs function returns the number of outputs in the real-time application. The number of outputs equals the sum of the input signal widths of the output blocks at the root level of the Simulink® model.

Introduced before R2006a

Was this topic helpful?