コード例 #1
0
 /**
  * <summary>
  *   Changes the zero tracking threshold value.
  * <para>
  *   When this threshold is larger than
  *   zero, any measure under the threshold will automatically be ignored and the
  *   zero compensation will be updated.
  *   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 zero tracking threshold value
  * </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_zeroTracking(double newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No MultiCellWeighScale connected");
     }
     if (newval == _ZeroTracking_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_zeroTracking(newval));
 }