Square Complex Generator

From Visuino
Jump to navigation Jump to search

File:TArduinoSquareComplexGenerator.png

Summary

Generates a complex-valued square waveform with configurable amplitude, frequency, offset, and phase.

Description

The **Square Complex Generator** produces a periodic square waveform represented as a complex number output. The signal is controlled by its **Amplitude**, **Frequency**, **Offset**, and **Phase** properties.

It supports **Elements**, allowing you to add **Reached Phase** triggers that activate when the waveform reaches a specified phase. This is useful for synchronization, timing, and phase-based control logic.

The behavior when the generator is disabled can be customized to either finish the current waveform cycle or reset immediately.

Diagram:

Categories

Properties

  • Amplitude – Complex amplitude of the square waveform (Imaginary, Real).
  • Asymmetry – Defines the duty cycle of the waveform (0–100%).
  • 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 square waveform output.