Subsections


Event delay

\epsfig{file=EVTDLY_f.eps,width=90.00pt}

Library

Events

Description

One event is generated Delay after an event enters the unique input event port. Block may also generate an initial output event.

Dialog Box

Set Event Delay block parameters
and the generated output event
Block may initially generate an output event before
any input event. "Date of initial output event"
gives the date of this event. Set a negative value
if no initial event required
Delay 0.1
Date of initial output event 0.1

Default properties

Interfacing function

scilab/macros/scicos_blocks/events/EVTDLY_f.sci

Computational function (type 0)


      subroutine evtdly(flag,nevprt,t,xd,x,nx,z,nz,tvec,ntvec,
     &     rpar,nrpar,ipar,nipar,u,nu,y,ny)
c     Copyright INRIA
c     Scicos block simulator
c     event delay
c     delay=rpar(1)
c
      double precision t,xd(*),x(*),z(*),tvec(*),rpar(*),u(*),y(*)
      integer flag,nevprt,nx,nz,ntvec,nrpar,ipar(*)
      integer nipar,nu,ny

c
c
      if(flag.eq.3) then
         tvec(1)=t+rpar(1)
      endif
      return
      end

Ramine Nikoukhah 2004-06-22