Difference between revisions of "Component: Level (DSP)"
From Flowcode Help
Jump to navigationJump to searchLine 14: | Line 14: | ||
==Level component== | ==Level component== | ||
Allows for detection and collection of peaks, troughs and averages. | Allows for detection and collection of peaks, troughs and averages. | ||
+ | |||
+ | ==Component Pack== | ||
+ | |||
+ | DSP | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 28: | Line 34: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Revision as of 16:18, 7 January 2022
Author | Matrix Ltd |
Version | 1.2 |
Category | DSP |
Contents
Level component
Allows for detection and collection of peaks, troughs and averages.
Component Pack
DSP
Detailed description
No detailed description exists yet for this component
Examples
Here is a basic example of the Level component. The example collects the max, min and average readings from the buffer and displays them on the LCD display.
The values in the buffer are defined using the InputADC component.
Min: Minimum (smallest) value read from the buffer.
Max: Maximum (largest) value read from the buffer.
Average: Rolling average calculated from the values inside the buffer.
Downloadable macro reference
![]() |
ReadTroughArray |
Returns the lowest value from the last "Decay" number of buffers. | |
![]() |
Return |
![]() |
ReadTrough |
Returns the lowest value from the last "Decay" number of index locations. | |
![]() |
Return |
![]() |
ReadAverage |
Returns the average from the last "Decay" number of index locations. | |
![]() |
Return |
![]() |
ReadPeakArray |
Returns the highest value from the last "Decay" number of buffers. | |
![]() |
Return |
![]() |
ReadAverageArray |
Returns the average from the last "Decay" number of buffers. | |
![]() |
Return |
![]() |
ReadPeak |
Returns the highest value from the last "Decay" number of index locations. | |
![]() |
Return |
![]() |
ResetRecords |
Allows the peak and trough to be reset back to default values. | |
![]() |
ResetPeak |
![]() |
ResetTrough |
![]() |
Return |