コード例 #1
0
        /**
         * <summary>
         *   Returns the current averaged temperature, used for thermal compensation.
         * <para>
         * </para>
         * <para>
         * </para>
         * </summary>
         * <returns>
         *   a floating point number corresponding to the current averaged temperature, used for thermal compensation
         * </returns>
         * <para>
         *   On failure, throws an exception or returns <c>YMultiCellWeighScale.COMPTEMPAVG_INVALID</c>.
         * </para>
         */
        public double get_compTempAvg()
        {
            double res;

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