Documentation

xPCGetParamIdx

Return parameter index

Prototype

int xPCGetParamIdx(int port, const char *blockName,  
const char *paramName);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

blockName

Enter the full block path generated by Simulink® Coder™.

paramName

Enter the parameter name for a parameter associated with the block.

Return

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

Description

The xPCGetParamIdx function returns the parameter index for the parameter name (paramName) associated with a Simulink block (blockName). Both blockName and paramName must be identical to the names that were generated at real-time application building time. To find the block names, access the file model_namept.m in the generated code, where model_name is the name of the model. A block can have one or more parameters.

Introduced before R2006a

Was this topic helpful?