Documentation

xPCGetSignalWidth

Return width of signal

Prototype

int xPCGetSignalWidth(int port, int sigIdx);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

sigIdx

Enter the index of a signal.

Return

Returns the signal width for a signal with sigIdx. If the function detects an error, it returns -1.

Description

The xPCGetSignalWidth function returns the number of signals for a specified signal index. Although signals are manipulated as scalars, the width of the signal is useful to reassemble the components into a vector again. The width of a signal is the number of signals in the vector.

Introduced before R2006a

Was this topic helpful?