Threshold: Difference between revisions
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
This flowgraph can be found at [[File:threshold_example.grc]] | This flowgraph can be found at [[File:threshold_example.grc]] | ||
[[ | [[Media:Threshold_Example.png|800px]] | ||
=== Advanced Example === | === Advanced Example === |
Revision as of 12:59, 18 December 2021
Output a 1 or zero based on a threshold value.
Test the incoming signal against a threshold. If the signal excedes the High value, it will change its output to 1, and if the signal falls below the Low value, it will change its output to 0.
Parameters
(R): Run-time adjustable
- Low (R)
- Low threshold. Outputs 0 if input goes below it
- High (R)
- High threshold. Outputs 1 if input goes above it
- Initial value
- Value to output before the input reach one of the thresholds. Can be any value, not just 0 or 1.
Example Flowgraphs
Simple Example
This flowgraph can be found at File:Threshold example.grc
Advanced Example
This flowgraph can be found at [1]
Source Files
- C++ files
- Here
- Header files
- Here
- Public header files
- Here
- Block definition
- Yaml