When handling an Input that sends data at a high rate (e.g., 10 times per second), it can be useful to "throttle" the inputs to avoid reporting each and every value.
This section uses the example of throttling the value of the light sensor included with the mangOH Red, to illustrate how periodically report the value every 10 seconds.
Note that in this configuration, any value that is updated less than 10 seconds after the last one was repoted by the Observation will be discarded. In some cases it may be useful to also configure a buffer, function, and/or filter in addition to throttling, as described in the previous sections.
- Create an Observation that Buffers Data.
- Enable Throttle events.
- Enter 10 into Period. This specifies the time, in seconds, at which the current value from the light sensor will be reported.
- Click Save to complete the modification to the Observation.
Updated about 2 years ago