Difference between revisions of "Component: Math (DSP Operators)"
(8 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
==Component Source Code== | ==Component Source Code== | ||
+ | |||
+ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DSP_Math.fcfx FC_Comp_Source_DSP_Math.fcfx] | ||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DSP_Math.fcfx FC_Comp_Source_DSP_Math.fcfx] | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DSP_Math.fcfx FC_Comp_Source_DSP_Math.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 40: | Line 48: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 89: | Line 103: | ||
[[File:DSPSum6.jpg]] | [[File:DSPSum6.jpg]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Macro reference== | ||
+ | |||
+ | ===Calculate=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 175: | Line 133: | ||
+ | ===CalculateArray=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 186: | Line 145: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 10:26, 20 October 2023
Author | Matrix Ltd |
Version | 1.2 |
Category | DSP Operators |
Contents
Math component
Component to combine together two DSP buffers into one an index at a time. Functions include: Add, Average, Difference, Max, Min, Subtract
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DSP_Math.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DSP_Math.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is a example file which generates a sine wave and a triangle wave and then uses the DSP sum component to merge together the two signals.
DSPSum
Here is the kind of waveform you can expect to see using the scope window when adding the two signals together.
Here is the kind of waveform you can expect to see using the scope window when subtracting the two readings.
Here is the kind of waveform you can expect to see using the scope window when taking the maximum of the two signals.
Here is the kind of waveform you can expect to see using the scope window when taking the minimum of the two signals.
Here is the kind of waveform you can expect to see using the scope window when taking the average between the two signals.
Here is the kind of waveform you can expect to see using the scope window when taking the difference between the two signals.
Macro reference
Calculate
![]() |
Calculate |
Performs a single calculation on the two input buffers and provides a result into the output buffer | |
![]() |
Return |
CalculateArray
![]() |
CalculateArray |
Performs a single calculation on the two input buffers and provides a result into the output buffer | |
![]() |
Return |