Ejemplo n.º 1
0
 /**
  * <summary>
  *   Changes the input signal range used by the sensor.
  * <para>
  *   When the input signal gets out of the planned range, the output value
  *   will be set to an arbitrary large value, whose sign indicates the direction
  *   of the range overrun.
  * </para>
  * <para>
  *   For a 4-20mA sensor, the default input signal range is "4...20".
  *   For a 0-10V sensor, the default input signal range is "0.1...10".
  *   For numeric communication interfaces, the default input signal range is
  *   "-999999.999...999999.999".
  * </para>
  * <para>
  *   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 string corresponding to the input signal range used by the sensor
  * </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_signalRange(string newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No GenericSensor connected");
     }
     if (newval == _SignalRange_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_signalRange(newval));
 }