MultiCam Boards Documentation > MultiCam Documentation > MultiCam User Guide > MultiCam Basics > Parameters > Code Examples for Parameters Management > Code Example: How to Get a Collection Parameter?

Code Example: How to Get a Collection Parameter?

The following code gets the second element of the SignalEvent integer collection parameter into an integer variable. The collection parameter can be accessed by identifier and by name. So, there are two ways to proceed:

[C]

//Declaring an integer variable

INT32 MyEvent;

//Getting the element using the by-ident method

Status = McGetParamInt(ObjectHandle, MC_SignalEvent+1, & MyEvent);

//Getting the element using the by-name method

Status = McGetParamNmInt(ObjectHandle, "SignalEvent:1", & MyEvent);