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

McGetParamStr

Returns the current value of a MultiCam parameter as a string variable. The parameter is referred to by-identifier, and is preferably of the string or enumerated type.

[C]

MCSTATUS McGetParamStr(
  MCHANDLE Instance,
  MCPARAMID Param,
  PCHAR ValueStr,
  UINT32 MaxLength
);

Parameters

Instance

Handle of the instance of the parameter to read.

Param

Identifier of the parameter to read.

ValueStr

Pointer to the string variable that receives the parameter value.

MaxLength

Maximum number of characters in the read string.

Example

The following code gets the channel-class select-level string parameter BoardIdentifier. The last argument is the size of the buffer where the returned string is to be hosted. It should be large enough to accommodate any possible returned string parameter.

//Declaring a string variable

CHAR MyBoard[32];

//Getting the parameter using the by-name method

Status = McGetParamNmStr(ObjectHandle, "BoardIdentifier", &MyBoard, 32);

Remarks

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

See Also

By-Name vs. By-Ident Access

McGetParamNmStr