/** * <summary> * Returns the PWM pulse length in milliseconds, as a floating point number. * <para> * </para> * <para> * </para> * </summary> * <returns> * a floating point number corresponding to the PWM pulse length in milliseconds, as a floating point number * </returns> * <para> * On failure, throws an exception or returns <c>YPwmOutput.PULSEDURATION_INVALID</c>. * </para> */ public double get_pulseDuration() { double res; if (_func == null) { throw new YoctoApiProxyException("No PwmOutput connected"); } res = _func.get_pulseDuration(); if (res == YAPI.INVALID_DOUBLE) { res = Double.NaN; } return(res); }