
21. High-level API Reference
21.7. Recorded data sequence
YDataSet objects make it possible to retrieve a set of recorded measures for a given sensor and a
specified time interval. They can be used to load data points with a progress report. When the
YDataSet object is instantiated by the
get_recordedData()
function, no data is yet loaded from
the module. It is only when the
loadMore()
method is called over and over than data will be
effectively loaded from the dataLogger.
A preview of available measures is available using the function
get_preview()
as soon as
loadMore()
has been called once. Measures themselves are available using function
get_measures()
when loaded by subsequent calls to
loadMore()
.
This class can only be used on devices that use a recent firmware, as YDataSet objects are not
supported by firmwares older than version 13000.
In order to use the functions described here, you should include:
js
<script type='text/javascript' src='yocto_api.js'></script>
cpp
#include "yocto_api.h"
m
#import "yocto_api.h"
pas
uses yocto_api;
vb
yocto_api.vb
cs
yocto_api.cs
java
import com.yoctopuce.YoctoAPI.YModule;
uwp
import com.yoctopuce.YoctoAPI.YModule;
py
from yocto_api import *
php
require_once('yocto_api.php');
es
in HTML: <script src="../../lib/yocto_api.js"></script>
in node.js: require('yoctolib-es2017/yocto_api.js');
YDataSet
methods
Returns the end time of the dataset, relative to the Jan 1, 1970.
Returns the hardware identifier of the function that performed the measure, without reference to the module.
Returns the unique hardware identifier of the function who performed the measures, in the form
SERIAL.FUNCTIONID
.
Returns all measured values currently available for this DataSet, as a list of YMeasure objects.
measure
)
Returns the detailed set of measures for the time interval corresponding to a given condensed measures
previously returned by
get_preview()
.
Returns a condensed version of the measures that can retrieved in this YDataSet, as a list of YMeasure
objects.
Returns the progress of the downloads of the measures from the data logger, on a scale from 0 to 100.
Returns the start time of the dataset, relative to the Jan 1, 1970.
458
www.yoctopuce.com
Содержание Yocto-RangeFinder
Страница 1: ...Yocto RangeFinder User s guide...
Страница 2: ......
Страница 18: ...12 www yoctopuce com...
Страница 26: ...20 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 70: ...gcc lyocto lm lpthread lusb 1 0 lstdc 10 Using Yocto RangeFinder with C 64 www yoctopuce com...
Страница 90: ...84 www yoctopuce com...
Страница 120: ...114 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...21 High level API Reference On failure throws an exception or returns a negative error code 152 www yoctopuce com...
Страница 484: ...478 www yoctopuce com...
Страница 488: ...482 www yoctopuce com...
Страница 490: ...23 Characteristics 484 www yoctopuce com...
Страница 491: ......
Страница 492: ......