Subsections

- Library
- Description
- Dialog Box
- Default properties
- Interfacing function
- Computational function (type 1)

##
Generic

### Library

Others

### Description

### Dialog Box

Set GENERIC block parameters |
simulation function | sinblk
function type (0,1,2,..) | 1
input ports sizes | 1
output port sizes | 1
input event ports sizes | []
output events ports sizes | []
initial continuous state | []
initial discrete state | []
Real parameters vector | []
Integer parameters vector | []
number of modes | 0
number of zero_corssings | 0
initial firing vector (0 for no firing) | []
direct feedthrough (y or n) | y
time dependence (y or n) | n

- simulation function: YYYY
- function type : YYYY
- input ports sizes: YYYY
- output port sizes: YYYY
- input event ports sizes: YYYY
- output events ports sizes: YYYY
- initial continuous state: YYYY
- initial discrete state: YYYY
- Real parameters vector: YYYY
- Integer parameters vector: YYYY
- number of modes: YYYY
- number of zero_corssings: YYYY
- initial firing vector : YYYY
- direct feedthrough : YYYY
- time dependence : YYYY

### Default properties

- always active: no
- direct-feedthrough: yes
- zero-crossing: no
- mode: no
- number/sizes of inputs: 1 / 1
- 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: sinblk

### Interfacing function

`scilab/macros/scicos_blocks/cos/generic_block2.sci`

### Computational function (type 1)

          subroutine sinblk(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
          do 15 i=1,nu
             y(i)=sin(u(i))
     15   continue

          end