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

McSetParamStr

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

[C]

MCSTATUS McSetParamStr(
  MCHANDLE Instance,
  MCPARAMID Param,
  PCHAR ValueStr
);

Parameters

Instance

Handle of the instance of the parameter to configure.

Param

Identifier 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-ident method

Status = McSetParamStr(ObjectHandle, MC_CamFile, "CAM2000-I200SA");

See Also

By-Name vs. By-Ident Access

McSetParamNmStr