.ModelicaDEVS.SourceBlocks.Square

Information

The Square Block

Parameters:
offset amplitude offset
a amplitude
f frequency
d duty cycle (percentage)


Description:

This block generates a simple step signal.

The duty cycle indicates the percentage of the period in which the signal is positive, i.e. when the output event takes a value of y=offset+a.

Assigning a negative value to the amplitude results in a mirroring of the signal at the straight line y=offset.


Generated Events (QSS1/QSS2/QSS3 mode):


yVal[1] yVal[2] yVal[3]
t=i*1/f offset-a 0 0
t=i*1/f+1/(f*(100-d)) offset+a 0 0
i=natural numbers

In words: events are generated at the beginning of a every period and at the beginning of the duty cycle.



Parameter setting: offset=0
a=1
f=1
d=75


Generated at 2024-12-26T19:25:54Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos