DeviceParameterList.findValueInt Method

Module: DeviceParameterList

Definition

Searches the list for a parameter that has a specific integer value, providing a mechanism to locate parameters based on their current setting

This function is especially useful in scenarios where parameters need to be identified or grouped by their values.

int findValueInt(int value)

Parameters

value int
in The integer value to search for among the parameters in the list

Returns

int
Outputs the index of the first device_parameter in the list whose value_as_int matches the specified search value
If no matching parameter is found, this value could be set to a sentinel value indicating ‘not found’ (e.g., -1).

Exceptions

An error has occurred during Devices Library execution.