Documentation

xPCGetSignalName

Copy name of signal to character array

Prototype

char *xPCGetSignalName(int port, int sigIdx, char *sigName);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

sigIdx

Enter a signal index.

sigName

Character string with the name of a signal.

Return

Returns the name of the signal.

Description

The xPCGetSignalName function copies and returns the signal name, including the block path, of a signal with sigIdx. The result is stored in sigName. If sigIdx is invalid, xPCGetLastError returns a nonzero value, and sigName is unchanged. The function returns sigName, which makes it convenient to use in a printf or similar statement. This function assumes that you already know the signal index.

Introduced before R2006a

Was this topic helpful?