Documentation

xPCGetParamName

Get name of parameter

Prototype

void xPCGetParamName(int port, int paramIdx, char *blockName, char 
*paramName);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

paramIdx

Enter a parameter index.

blockName

Character string with the full block path generated by Simulink® Coder™.

paramName

Name of a parameter for a specific block.

Description

The xPCGetParamName function gets the parameter name and block name for a parameter with the index paramIdx. The block path and name are returned and stored in blockName, and the parameter name is returned and stored in paramName. Allocate enough space for both blockName and paramName. If the paramIdx is invalid, xPCGetLastError returns nonzero, and the character strings are unchanged. Get the parameter index from the function xPCGetParamIdx.

Introduced before R2006a

Was this topic helpful?