Subsections


Halt

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

Library

Events

Description

This block has a unique input event port. Upon the arrival of an event, the simulation is stopped and the main Scicos window is activated. Simulation can be restarted or continued (Run button).

Dialog Box

Set Halt block parameters
State on halt 0

Default properties

Interfacing function

scilab/macros/scicos_blocks/events/HALT_f.sci

Computational function (type 0)


      subroutine hltblk(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     Notify simulation to stop  when called 
c     ipar(1) : stop reference
c
      double precision t,xd(*),x(*),z(*),tvec(*),rpar(*),u(*),y(*)
      integer flag,nevprt,nx,nz,ntvec,nrpar,ipar(*)
      integer nipar,nu,ny

c
      integer halt
      common /coshlt/ halt
c
      if(flag.eq.2) then
         halt=1
         if(nipar.gt.0) then
            z(1)=ipar(1)
         else
            z(1)=0.0d0
         endif
      endif
      end

Ramine Nikoukhah 2004-06-22