MultiCam Boards Documentation > MultiCam Documentation > MultiCam C Reference > Functions > Parameters Management > McSetParamNmInst

McSetParamNmInst

Assigns an instance variable to a MultiCam parameter. The parameter is referred to by-name, and is of the instance type.

[C]

MCSTATUS McSetParamNmInst(
  MCHANDLE Instance,
  PCHAR ParamName,
  MCHANDLE ValueInst
);

Parameters

Instance

Handle of the instance of the parameter to configure.

ParamName

Pointer to a string containing the name of the parameter to configure.

ValueInst

Handle of the instance assigned to the parameter.

Example

The following code sets the channel-class select-level instance parameter Cluster to the value SurfaceHandle, a handle to a surface that has to be created beforehand.

//Setting the parameter using the by-name method

Status = McSetParamNmInst(ChannelHandle, "Cluster", SurfaceHandle);

See Also

By-Name vs. By-Ident Access

McSetParamInst