Jump to content

Component: Quadrature Generator (DSP Inputs): Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
Line 34: Line 34:


===Generate===
===Generate===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 48: Line 48:


===GenerateArray===
===GenerateArray===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 62: Line 62:


===GetOffset===
===GetOffset===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 76: Line 76:


===ModifyAmplitude===
===ModifyAmplitude===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 95: Line 95:


===ModifyFrequency===
===ModifyFrequency===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 114: Line 114:


===ModifyPhaseOffset===
===ModifyPhaseOffset===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 138: Line 138:


===SetOffset===
===SetOffset===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 158: Line 158:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]

Revision as of 14:15, 13 July 2026

Author Matrix Ltd
Version 1.2
Category DSP Inputs


Quadrature Generator component

A quadrature generator allowing the generation of two waves Q and I which are b default 90 degrees out of phase from each other. Useful in modulating data.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_DSP_Quadrature.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DSP_Quadrature.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Macro reference

Generate

Generate
Assigns a single value to the specified buffer from the selected waveform data. Each call will read the next value from the waveform and will wrap correctly at the end of the data period. 
- VOID Return


GenerateArray

GenerateArray
Fills the output buffer with the selected waveform data. If the buffer is smaller or larger then the waveform data period then the data passed will follow on correctly for subsequent cycles. 
- VOID Return


GetOffset

GetOffset
Gets the current phase of the wave as an index from 0 to Num Samples. 
- UINT Return


ModifyAmplitude

ModifyAmplitude
Allows the amplitude to be adjusted by applying a scaler to the waveform data. 
- FLOAT Scaler
1.0 = 100% Default / 0.5 = 50% / 2.0 = 200% 
- VOID Return


ModifyFrequency

ModifyFrequency
Sets the frequency output rate by altering the period offset to a new value. 
- FLOAT OffsetRate
0.2=F/5 0.5=F/2 1.0=F 1.5=F*1.5 2.0=F*2 
- VOID Return


ModifyPhaseOffset

ModifyPhaseOffset
Shifts the output phase by the specified absolute angle in degrees. 
- FLOAT PhaseOffset
Phase offset in degrees 
- BOOL Absolute
0=Relative offset to current o/p 1=Absolute offset to initial o/p 
- VOID Return


SetOffset

SetOffset
Sets the current phase of the wave as an index from 0 to Num Samples. 
- UINT Offset
Current sample of the wave: range 0 to num samples - 1 
- VOID Return


Property reference

Properties
Buffer Size
Number of individual elements the buffer can store, default 1. 
Buffer Type
Sets the buffer data type. 
Waveform
Amplitude
Waveform amplitude or volume 
Offset
Waveform DC offset 
Calculate Data
Yes = Allows Sine, Cosine, Noise data to be generated on the fly using a calculation, provides much better resolution at the cost of processing performance. No = Allows Sine, Cosine, Noise data to be generated ahead of run time, provides fixed resolution output but is fast and efficient to generate. 
Samples
Waveform sample count, the number of data points in the stored cyclic wave look up table. 
Start Phase Angle
Waveform phase, the angle in degrees or sample in the wave to start streaming from 
Data
The raw waveform data 
Period Offset
The initial amount that the index increments through the LUT data when reading the stored waveform. 0.2 = Frequency / 5 0.5 = Frequency / 2 1.0 = Original Frequency 1.5 = Frequency * 1.5 2.0 = Frequency * 2 
Sample Period
Degrees per default sample offset period 
Frequency Calculation - Reference Only
Sample Rate (hz)
Allows the sample rate to be entered to allow some basic calculations 
Period (s)
The length of time in seconds that the wave period will cover at the specified sample rate 
Frequency (hz)
The repeat frequency of the wave at the specified sample rate