Configure
Configure the algorithm. Channel specific parameter are set using the method ConfigueChannel().
Configuration options
- Calculate Inflection: Boolean flag. Maxima of the rate of change are only identified if this flag is True. Otherwise, the values for Count Max Delta, Max Delta, Time Max Delta andValue at Max Delta will not be calculated.
- Threshold Reversal: threshold for identifying reversals. Reversals are only detected if their difference from the next reversal exceeds the value of Threshold Reversal.
Below are three examples of peak identification using the parameter Threshold Reversal.
(a) The value y3 is identified as a peak immediately after processing the value y4 because the difference between y3 and y4 is greater than Threshold Reversal.
(b) The value y3 is not identified as a peak because the difference between y3 and y4 is smaller than Threshold Reversal and the curve starts rising again after y4.
(c) The value y2 is identified as a peak after processing the value y5 because the difference between y2 and y5 exceeds Threshold Reversal. The value y2 cannot be identified as a peak beforehand because the difference between y2 and y3 (y4) is less than/equal to Threshold Reversal and it is not known whether the values will continue to decrease.
- Threshold Delta: threshold for identifying Delta maxima. Maxima of the absolute difference of two successive values (delta) are detected only if the difference between successive deltas exceeds Threshold Delta.
Below are three examples of identifying the Delta maxima with the parameter Threshold Delta . The upper diagrams show the original input signals, the lower ones the corresponding delta.
(a) The value y4 is identified as a maximum after processing the value y5 because the difference between the two deltas exceeds Threshold Delta.
(b) No maximum is identified because the difference between the deltas is less than Threshold Delta.
(c) The value y3 is identified as a maximum after processing the value y6.
Regardless of Threshold Delta, at least one maximum of the Delta between two reversals is detected. |
Syntax
Definition:
METHOD Configure : BOOL
VAR_INPUT
fThresholdReversal : LREAL;
bCalcInflection : BOOL;
fThresholdDelta : LREAL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
fThresholdReversal | LREAL | Threshold for peak analysis |
bCalcInflection | BOOL | Max Delta evaluation |
fThresholdDelta | LREAL | Threshold for Delta analysis |
Return value
Name | Type | Description |
---|---|---|
Configure | BOOL | Returns |