/** * <summary> * Changes the averaged temperature update rate, in per mille. * <para> * The purpose of this adaptation ratio is to model the thermal inertia of the load cell. * The averaged temperature is updated every 10 seconds, by applying this adaptation rate * to the difference between the measures ambient temperature and the current compensation * temperature. The standard rate is 0.2 per mille, and the maximal rate is 65 per mille. * Remember to call the <c>saveToFlash()</c> method of the module if the * modification must be kept. * </para> * <para> * </para> * </summary> * <param name="newval"> * a floating point number corresponding to the averaged temperature update rate, in per mille * </param> * <para> * </para> * <returns> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public int set_tempAvgAdaptRatio(double newval) { if (_func == null) { throw new YoctoApiProxyException("No MultiCellWeighScale connected"); } if (newval == _TempAvgAdaptRatio_INVALID) { return(YAPI.SUCCESS); } return(_func.set_tempAvgAdaptRatio(newval)); }