Triangular Wave Source

Description of the Triangular Wave Source component in Schematic editor, which outputs a triangular waveform.

Component icon

Figure 1. Triangular wave source icon

Description

The Triangular wave source component outputs a triangular waveform signal.

The characteristics of a triangular waveform are illustrated in Figure 2.

Figure 2. Example of a triangular waveform produced by the triangular wave source component.

The duty cycle is defined by the ratio of the rise time and the period of the waveform, that is:

duty cycle = Tr / T

Frequency is the inverse of the period:

f = 1 / T

Phase delay is given by the ratio of the delay time and the period of the signal:

phase = td / T

Ports

  • Output (out)
    • Triangular waveform signal generated by the component.
      • Supported types: real.
      • Vector support: yes.
        • The vector length is calculated from the property values. If the property is defined as a vector, the output will be a vector of the same length. Note that all properties declared as vectors should have the same length. Properties declared as scalars apply to all elements of the component's output.

Properties

  • Minimum signal value
    • Type in the minimum value of the triangular signal. This property can be set as a scalar or a vector.
  • Maximum signal value
    • Type in the maximum value of the triangular signal. This property can be set as a scalar or a vector.
  • Frequency
    • Type in the frequency value, in Hz, of the triangular signal. This property can be set as a scalar or a vector.
  • Duty cycle
    • Type in the value related to the ramp-up time of the triangular signal. It is given in pu (per unit). This property can be set as a scalar or a vector.
  • Phase delay
    • Type in the value related to the phase with which the triangular signal will be delayed in reference to the simulation start time. It is given in pu (per unit). This property can be set as a scalar or a vector.
  • Signal type
    • Select the output signal type. It can be “real”, “int”, or “uint”.
  • Execution rate
    • Type in the desired signal processing execution rate. This value must be compatible with other signal processing components of the same circuit: the value must be a multiple of the fastest execution rate in the circuit. There can be up to four different execution rates, but they must all be multiple of the basic simulation timestep. To specify the execution rate, you can use either decimal (e.g. 0.001) or exponential values (e.g. 1e-3) in seconds. Alternatively, you can type in ‘inherit’ in which case the component will be assigned execution rate based on the execution rate of the components it is receiving input from.
  • Tunable
    • Enables run-time tuning of the selected component. This will allow you to change values of frequency, minimum signal value, maximum signal value, duty cycle, and phase during simulation without the need to recompile the model. Tunable properties are available in HIL SCADA in Model Explorer.
    • Phase can be tuned only before the start of the simulation.