Documentation

xPCGetSigLabelWidth

Return number of elements in signal

Prototype

int xPCGetSigLabelWidth(int port, const char *sigName);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

sigName

Character string with the name of a signal.

Return

Returns the number of elements that the signal sigName contains. If the function detects an error, it returns -1.

Description

The xPCGetSigLabelWidth function returns the number of elements that the signal sigName contains. This function assumes that you have labeled the signal for which you request the elements (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. Signal labels must be unique.

Introduced in R2007a

Was this topic helpful?