/** * <summary> * Returns the current run number, corresponding to the number of times the module was * powered on with the dataLogger enabled at some point. * <para> * </para> * <para> * </para> * </summary> * <returns> * an integer corresponding to the current run number, corresponding to the number of times the module was * powered on with the dataLogger enabled at some point * </returns> * <para> * On failure, throws an exception or returns <c>YDataLogger.CURRENTRUNINDEX_INVALID</c>. * </para> */ public int get_currentRunIndex() { int res; if (_func == null) { throw new YoctoApiProxyException("No DataLogger connected"); } res = _func.get_currentRunIndex(); if (res == YAPI.INVALID_INT) { res = _CurrentRunIndex_INVALID; } return(res); }