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.
find_value_int(self, value: int) -> int
Parameters
value
intin 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 valueIf 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.
int findValueInt(int value)
Parameters
value
intin 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 valueIf 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.
public int FindValueInt(int value)
Parameters
value
intin 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 valueIf 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.
public int findValueInt(int value) throws DevicesException
Parameters
value
intin 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 valueIf 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.
int id3DevicesDeviceParameterList_FindValueInt (
ID3_DEVICES_DEVICE_PARAMETER_LIST hDeviceParameterList,
int value,
int * index)
Parameters
hDeviceParameterList
ID3_DEVICES_DEVICE_PARAMETER_LISTin Handle to the DeviceParameterList object.value
intin The integer value to search for among the parameters in the listindex
int *out Outputs the index of the first device_parameter in the list whose value_as_int matches the specified search value
Returns