Subsections

rt_square_if

Library

Robotics


Description

This block is a event-driven square wave generator. It lets you adjust amplitude (A), period (P), impulse width (W), bias (B) and delay (D).

This block has one regular output. First pulse evaluation is done according to the following law: if t >= D pulse is ON, i.e.

y(t) = A + B, when t <= W
y(t) = B, otherwise

if t < D pulse is OFF, i.e. y(t) = 0.

Pulse repeats itself every P seconds.


Dialog Box

Set RT square wave generator block parameters
Amplitude 1
Period 4
Impulse width 2
Bias 0
Delay 0

Default Properties


Interfacing Function

<PATH>/macros/rt_square_if.sci
[view code]

Computational Function (type 4)

<PATH>/src/rt_square.c
[view code]

See Also

rt_singen_if,  


Bibliography

R. Bucher, The RTAI-Lab project, file "rtai-3.5/rtai-lab/scilab/devices/rtai_square.c".



Matteo Morelli - Interdepartmental Research Center "E. Piaggio", University of Pisa, April 2007
Get the Robotics Toolbox for Scilab/Scicos at SourceForge.net. Fast, secure and Free Open Source software downloads