Example #1
0
        /**
         * <summary>
         *   Returns the maximal value observed for the measure since the device was started.
         * <para>
         *   Can be reset to an arbitrary value thanks to set_highestValue().
         * </para>
         * <para>
         * </para>
         * </summary>
         * <returns>
         *   a floating point number corresponding to the maximal value observed for the measure since the device was started
         * </returns>
         * <para>
         *   On failure, throws an exception or returns <c>YSensor.HIGHESTVALUE_INVALID</c>.
         * </para>
         */
        public double get_highestValue()
        {
            double res;

            if (_func == null)
            {
                throw new YoctoApiProxyException("No Sensor connected");
            }
            res = _func.get_highestValue();
            if (res == YAPI.INVALID_DOUBLE)
            {
                res = Double.NaN;
            }
            return(res);
        }