Triangle Complex Generator
File:TArduinoTriangleComplexGenerator.png
Summary
Generates a complex-valued triangle waveform with configurable amplitude, frequency, offset, and asymmetry.
Description
The **Triangle Complex Generator** produces a periodic triangle waveform as a complex number output. The signal is defined by its **Amplitude**, **Frequency**, **Offset**, and **Asymmetry** properties.
The generator also supports **Elements** that can trigger actions at specific phases of the waveform cycle. Each **Reached Phase** element allows specifying a phase value at which an event is considered reached, enabling external synchronization or conditional logic.
Additional behavior can be controlled when the component is disabled, such as resetting or completing the current cycle.
Diagram:
Categories
- File:TArduinoComplexCategory.png Category Complex – Complex number generation.
- File:TArduinoSignalGeneratorsCategory.png Category Signal Generators – Waveform and oscillator sources.
Properties
- Amplitude – Complex amplitude of the waveform (Imaginary, Real).
- Asymmetry – Controls the symmetry of the triangle waveform (-1 to 1).
- Elements – Click the **…** button to add **Reached Phase** elements.
- Reached Phase Properties:**
- • Phase** – The phase angle (0–360°) at which the element is triggered.
- • Enabled** – Enables or disables the phase trigger.
- Enabled – Enables or disables the generator.
- Frequency – Frequency of the waveform in Hertz.
- Offset – Complex offset (Imaginary, Real) added to the waveform.
- Phase – Initial phase offset of the waveform.
- When Disabled – Defines behavior when the generator is disabled:
- • Complete Cycle (boolean)** – If true, continues until the current cycle is completed.
- • Reset (boolean)** – If true, resets the generator immediately.
Pins
Input Pins
- Clock – Clock input to advance the generator step-by-step.
- Reset – Clock input to reset the generator to its initial phase.
Output Pins
- Out – Complex waveform output.