Copy label of signal to character array
char * xPCGetSignalLabel(int
sigIdx, char *sigLabel);
Do not use this C API type definition. Support for this type definition relies on support for the C API, which will be removed in a future release.
Enter the value returned by the function xPCOpenTcpIpPort.
Enter signal index.
Return signal label associated with signal index,
Returns the label of the signal.
xPCGetSignalLabel function copies and
returns the signal label, including the block path, of a signal with
The result is stored in
invalid, xPCGetLastError returns
a nonzero value, and
sigLabel is unchanged.
The function returns
sigLabel, which makes
it convenient to use in a
printf or similar statement.
This function assumes that you already know the signal index. Signal
labels must be unique.
This function assumes that you have labeled the signal for which you request the index (see the Signal name parameter of the Signal Properties Controls (Simulink)). The Simulink® Real-Time™ software refers to Simulink signal names as signal labels. The creator of the custom program already knows the signal name/label.