/** * <summary> * Returns the current value of signal measured by the proximity sensor. * <para> * </para> * <para> * </para> * </summary> * <returns> * a floating point number corresponding to the current value of signal measured by the proximity sensor * </returns> * <para> * On failure, throws an exception or returns <c>YProximity.SIGNALVALUE_INVALID</c>. * </para> */ public double get_signalValue() { double res; if (_func == null) { throw new YoctoApiProxyException("No Proximity connected"); } res = _func.get_signalValue(); if (res == YAPI.INVALID_DOUBLE) { res = Double.NaN; } return(res); }