Difference between revisions of "Component: Level (DSP)"
(XML import) |
|||
Line 20: | Line 20: | ||
==Examples== | ==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. | 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. | ||
+ | |||
{{Fcfile|Level.fcfx|Level}} | {{Fcfile|Level.fcfx|Level}} | ||
+ | |||
+ | |||
The values in the buffer are defined using the InputADC component. | The values in the buffer are defined using the InputADC component. | ||
Revision as of 11:18, 28 July 2016
Author | Matrix Ltd |
Version | 1.2 (Release) |
Category | DSP |
Contents
Level component
Allows for detection and collection of peaks, troughs and averages.
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
ReadPeakTick
Returns the highest value from the last "Decay" number of index locations.
Parameters
- This macro has no parameters
Return value
ReadTrough
Returns the lowest value from the last "Decay" number of buffers.
Parameters
- This macro has no parameters
Return value
ReadAverage
Returns the average from the last "Decay" number of buffers.
Parameters
- This macro has no parameters
Return value
ReadAverageTick
Returns the average from the last "Decay" number of index locations.
Parameters
- This macro has no parameters
Return value
ReadTroughTick
Returns the lowest value from the last "Decay" number of index locations.
Parameters
- This macro has no parameters
Return value
ReadPeak
Returns the highest value from the last "Decay" number of buffers.
Parameters
- This macro has no parameters
Return value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Buffer Manager
This property is of type Fixed list of ints and can be referenced with the variable name buffer_manager.
Reference to DSP system buffer manager component.
Input
This property is of type Fixed list of ints and can be referenced with the variable name input_a.
Buffer assigned to input channel
Decay
This property is of type Signed integer and can be referenced with the variable name decay.
Configures how many buffers or values to allow a record to persist