Class SensorEventSettings
The threshold and count values for a configured sensor event.
Parameters
Name | Description |
EnableDisable |
uint16 A bitmask indicating which sensor events are enabled for this event type. Each bit corresponds to one of the types below, where bit 0 = SimpleThresUpperLim1 and bit 15 = BaseDiffThresLower. A value of 1 indicates that the threshold is enabled, and a value of 0 indicates that it is disabled. |
SimpleThresUpperLim1 |
int16 The event will trigger when the sensor value is greater than or equal to this threshold. This is the first of two possible thresholds. |
SimpleThresUpperLim2 |
int16 The event will trigger when the sensor value is greater than or equal to this threshold. This is the second of two possible thresholds. |
SimpleThresLowerLim1 |
int16 The event will trigger when the sensor value is less than or equal to this threshold. This is the first of two possible thresholds. |
SimpleThresLowerLim2 |
int16 The event will trigger when the sensor value is less than or equal to this threshold. This is the second of two possible thresholds. |
ChangeThresRise1 |
int16 The event will trigger when the difference between consecutive samples is greater than or equal to this threshold. This is the first of two possible thresholds. |
ChangeThresRise2 |
int16 The event will trigger when the difference between consecutive samples is greater than or equal to this threshold. This is the second of two possible thresholds. |
ChangeThresFall1 |
int16 The event will trigger when the difference between consecutive samples is less than or equal to this threshold. This is the first of two possible thresholds. |
ChangeThresFall2 |
int16 The event will trigger when the difference between consecutive samples is less than or equal to this threshold. This is the second of two possible thresholds. |
AvgValThresUpper |
int16 The event will trigger when the average value of the last AvgValCount samples is greater than or equal to this threshold. |
AvgValThresLower |
int16 The event will trigger when the average value of the last AvgValCount samples is less than or equal to this threshold. |
PeakToPeakThresUpper |
int16 The event will trigger when the difference between the min and max sensor values taken over PeakToPeakCount samples is greater than or equal to this threshold. |
PeakToPeakThresLower |
int16 The event will trigger when the difference between the min and max sensor values taken over PeakToPeakCount samples is less than or equal to this threshold. |
IntervalDiffThresUpper |
int16 The event will trigger when the difference between the latest sample and the sample at IntervalDiffCount points in the past is greater than or equal to this threshold. |
IntervalDiffThresLower |
int16 The event will trigger when the difference between the latest sample and the sample at IntervalDiffCount points in the past is less than or equal to this threshold. |
BaseDiffThresUpper |
int16 The event will trigger when the difference between the average value BaseDiffCount samples in the past and the current average value is greater than or equal to this threshold. |
BaseDiffThresLower |
int16 The event will trigger when the difference between the average value BaseDiffCount samples in the past and the current average value is less than or equal to this threshold. |
AvgValCount |
byte The number of samples to use when computing the average value. |
PeakToPeakCount |
byte The number of samples in the window used for peak to peak detection. |
IntervalDiffCount |
byte The number of samples in the interval for interval difference detection. |
BaseDiffCount |
byte The number of samples in the interval for base difference detection. |
Requirements
KioWare for Windows version 8.16 or greater.