/**
  * <summary>
  *   Configures the load cell span parameters (stored in the corresponding genericSensor)
  *   so that the current signal corresponds to the specified reference weight.
  * <para>
  * </para>
  * <para>
  * </para>
  * </summary>
  * <param name="currWeight">
  *   reference weight presently on the load cell.
  * </param>
  * <param name="maxWeight">
  *   maximum weight to be expected on the load cell.
  * </param>
  * <returns>
  *   <c>0</c> if the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public virtual int setupSpan(double currWeight, double maxWeight)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No WeighScale connected");
     }
     return(_func.setupSpan(currWeight, maxWeight));
 }