Class in Zendir.Classes | Inherits from UniverseBehaviour

Declaration

class SignalGenerator;

Description

A Signal Generator is able to generate various types of electrical signals (Constant, Sine, Square, Sawtooth, Triangle, Pulse, Ramp) with configurable parameters including amplitude, frequency, offset, phase, and duty cycle. The generator automatically calculates signal states (High, Low, RisingEdge, FallingEdge) for time-dependent signals.


Properties

DeclaredDescription
AmplitudeThe amplitude (peak voltage) of the signal. This is the maximum deviation from the offset.
ControlTypeThe control type of the signal, whether it is controlling Voltage or Current.
CurrentThe current value of the signal.
DutyCycleThe duty cycle for square and pulse waves, expressed as a ratio (0.0 to 1.0).For example, 0.5 represents 50% duty cycle (equal high and low times).
EdgeDetectionWindowEdge detection window in seconds. If a digital signal transitioned between High and Lowand the step size is less than this window, the state will be set to RisingEdge or FallingEdgeinstead of High or Low.
FrequencyThe frequency at which the signal is currently operating at,used only for time depandant signal types.
OffsetThe DC offset voltage of the signal. The signal will be centered around this value.
Out_ElectricalSignalMsgThe Signal message containing the current information of thegeneraated signal
PhaseThe phase shift of the signal in radians. This shifts the signal in time.
SignalProfileThe type of signal that is represented by this message,whether that is a Constant, Sine, Square or another signal type.
StateThe state of the signal that is represented by this message,whether that it is in a Constant, High, Low or another state.
VoltageThe voltage value of the signal.
InheritedDescription
IsEnabledIs true if the object is currently enabled.
NameThe display name or tag of this object.
ParentThe currently attached parent object (if any).

Methods

InheritedDescription
FindParentWithIDReturns an attached parent that satisfies the specified ID.
FindParentWithTypeReturns an attached parent that satisfies the specified type.
FindRootWithIDReturns a root object that satisfies the specified ID.
FindRootWithTypeReturns a root object that satisfies the specified type.