Documentation

xPCSetParam

Change value of parameter

Prototype

void xPCSetParam(int port, int paramIdx, const double *paramValue);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

paramIdx

Parameter index.

paramValue

Vector of doubles, assumed to be the size required by the parameter type

Description

The xPCSetParam function sets the parameter paramIdx to the value in paramValue. paramValue can contain a matrix represented as a vector in column-major format. Although paramValue is a vector of doubles, the function converts the values to the expected data types (using truncation) before setting them.

Introduced before R2006a

Was this topic helpful?