to access the autonomous datalogger. This class adds the ability to easily perform a one-point linear
calibration to compensate the effect of a glass or filter placed in front of the sensor. For some light
sensors with several working modes, this class can select the desired working mode.
logicalName
Character string containing the logical name of the light sensor, initially empty. This attribute can be
modified at will by the user. Once initialized to an non-empty value, it can be used to access the light
sensor directly. If two light sensors with the same logical name are used in the same project, there is
no way to determine which one answers when one tries accessing by logical name. The logical name
is limited to 19 characters among
A
..
Z
,
a
..
z
,
0
..
9
,
_
, and
-
.
advertisedValue
Short character string summarizing the current state of the light sensor, that is automatically
advertised up to the parent hub. For a light sensor, the advertised value is the current value of the
ambient light.
unit
Short character string representing the measuring unit for the ambient light.
currentValue
Current value of the ambient light, in the specified unit, as a floating point number.
lowestValue
Minimal value of the ambient light, in the specified unit, as a floating point number.
highestValue
Maximal value of the ambient light, in the specified unit, as a floating point number.
currentRawValue
Uncalibrated, unrounded raw value returned by the sensor, as a floating point number.
logFrequency
Datalogger recording frequency, or "OFF" when measures should not be stored in the data logger
flash memory.
reportFrequency
Timed value notification frequency, or "OFF" when timed value notifications are disabled for this
function.
calibrationParam
Extra calibration parameters (for instance to compensate for the effects of an enclosure), as an array
of 16 bit words.
resolution
Measure resolution (i.e. precision of the numeric representation, not necessarily of the measure
itself).
sensorState
Sensor health state (zero when a current measure is available).
measureType
Light sensor type used in the device. The measure can either approximate the response of the
human eye, focus on a specific light spectrum, depending on the capabilities of the light-sensitive
cell.
6. Programming, general concepts
www.yoctopuce.com
27
Содержание 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: ......