Complex Value

From Visuino
Jump to navigation Jump to search

File:TArduinoComplexValue.png

Summary

Generates or sets a complex value using configurable element actions.

Description

The **Complex Value** component produces a complex number signal, which can be updated either by the default **Value** (triggered via the **Clock** pin) or by custom **Elements**. Each element provides its own pins (clock or boolean) and defines how the complex value is set:

  • **Set Value** – Sets the value directly when its **Clock** input is triggered.
  • **Ramp To Value** – Smoothly ramps the value toward a target when its **Clock** input is triggered.
  • **Add Value** – Adds a specified offset to the current value when its **Clock** input is triggered.
  • **Set Value State** – Sets the value based on a **Boolean** input state.
  • **Ramp To Value State** – Smoothly ramps the value toward a target based on a **Boolean** input state.

The resulting complex value is always available at the **Out** pin.

Diagram:

Categories

Properties

  • Elements – Click the **…** button to open the elements window and add one or more element types (Set Value, Ramp To Value, Add Value, Set Value State, Ramp To Value State).
  • Value – The default complex number (Imaginary, Real) used when the component’s main **Clock** pin is triggered.

Pins

  • Clock – Input clock signal to output the default **Value**.
  • Out – Complex output value.

Element Pins

  • Set Value – Adds a **Clock** input pin.
  • Ramp To Value – Adds a **Clock** input pin.
  • Add Value – Adds a **Clock** input pin.
  • Set Value State – Adds a **Boolean** input pin.
  • Ramp To Value State – Adds a **Boolean** input pin.