/** * <summary> * Changes the output value range, corresponding to the physical value measured * by the sensor. * <para> * The default output value range is the same as the input signal * range (1:1 mapping), but you can change it so that the function automatically * computes the physical value encoded by the input signal. Be aware that, as a * side effect, the range modification may automatically modify the display resolution. * </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 output value range, corresponding to the physical value measured * 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_valueRange(string newval) { if (_func == null) { throw new YoctoApiProxyException("No GenericSensor connected"); } if (newval == _ValueRange_INVALID) { return(YAPI.SUCCESS); } return(_func.set_valueRange(newval)); }