Ejemplo n.º 1
0
    def _getFloatFeature(self):
        """
		Get the value of a float feature.
		
		:returns: float -- value of the specified feature.
		"""

        # create args
        valueToGet = c_double()

        errorCode = VimbaDLL.featureFloatGet(self._handle, self._name, byref(valueToGet))
        if errorCode != 0:
            raise VimbaException(errorCode)

        return valueToGet.value
Ejemplo n.º 2
0
    def _getFloatFeature(self):
        """
        Get the value of a float feature.

        :returns: float -- value of the specified feature.
        """

        # create args
        valueToGet = c_double()

        errorCode = VimbaDLL.featureFloatGet(self._handle,
                                             self._name,
                                             byref(valueToGet))
        if errorCode != 0:
            raise VimbaException(errorCode)

        return valueToGet.value