Square Wave Generator
This block is a square wave generator. The output switches between the Minimum value and the maximum value periodicly. The value of the fourth parameter of this block defines the period of the signal. The period of the switching is equal to the period of the signal divided by 2.
- Minimum Value
The Lower bound of the generator.
Properties : Type 'mat' of size [-1,-1].
- Maximum Value
The upper bound of the generator.
Properties : Type 'mat' of size [-1,-1].
- Initial Value( 1= Minimum Value 2= Maximum Value)
When this parameter is set to 1, the initial value of the signal will be the lower bound. When it is set to 2, the initial value will be the upper bound. In else case, it generates an error.
Properties : Type 'pol' of size -1.
- Period (sec)
The period of the square wave.
Properties : Type 'pol' of size -1.
- always active: no
- direct-feedthrough: no
- zero-crossing: no
- mode: no
- regular outputs:
- port 1 : size [-1,-2] / type -1
- number/sizes of activation inputs: 0
- number/sizes of activation outputs: 0
- continuous-time state: no
- discrete-time state: no
- object discrete-time state: no
- name of computational function: csuper
- SCI/macros/scicos_blocks/Sources/GEN_SQR.sci [view code]
Fady NASSIF INRIA