Documentation

xPCGetSignalIdx

Return index for signal

Prototype

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

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

sigName

Enter a signal name.

Return

Returns the index for the signal with name sigName. If the function detects an error, it returns -1.

Description

The xPCGetSignalIdx function returns the index of a signal. The name must be identical to the name generated when the real-time application was built. To find the name, access the file model_namebio.m in the generated code, where model_name is the name of the model. The creator of the custom program already knows the signal name.

Introduced before R2006a

Was this topic helpful?