Subsections

- Library
- Description
- Default properties
- Interfacing function
- Computational function (type 0)

##
Time

### Library

Sources

### Description

This block is a time generator. The unique regular output is the current time.

### Default properties

- always active: yes
- direct-feedthrough: no
- zero-crossing: no
- mode: no
- number/sizes of inputs: 0 /
- number/sizes of outputs: 1 / 1
- number/sizes of activation inputs: 0 /
- number/sizes of activation outputs: 0 /
- continuous-time state: no
- discrete-time state: no
- name of computational function: timblk

### Interfacing function

`scilab/macros/scicos_blocks/sources/TIME_f.sci`

### Computational function (type 0)

          subroutine timblk(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
          double precision t,xd(*),x(*),z(*),tvec(*),rpar(*),u(*),y(*)
          integer flag,nevprt,nx,nz,ntvec,nrpar,ipar(*)
          integer nipar,nu,ny

    c
    c
          y(1)=t

          end