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

McSetParamNmStr

Assigns a string variable to a MultiCam parameter. The parameter is referred to by-name, and is preferably of the string or enumerated type.

[C]

MCSTATUS McSetParamNmStr(
  MCHANDLE Instance,
  PCHAR ParamName,
  PCHAR ValueStr
);

Parameters

Instance

Handle of the instance of the parameter to configure.

ParamName

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

ValueStr

Pointer to the string assigned to the parameter.

Remarks

If the MultiCam parameter is not of the string type, a type conversion is performed.

Example

The following code sets the channel-class select-level string parameter CamFile to the value CAM2000-I200SA.

//Setting the parameter using the by-name method

Status = McSetParamNmStr(ObjectHandle, "CamFile", "CAM2000-I200SA");

See Also

By-Name vs. By-Ident Access

McSetParamStr