~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/fr/scicos/ZCROSS_f.htm

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 
2
 
 
3
<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
 
4
original version by:  Nikos Drakos, CBLU, University of Leeds
 
5
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
 
6
* with significant contributions from:
 
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
 
8
<HTML>
 
9
<HEAD>
 
10
<TITLE>Threshold detection at zero </TITLE>
 
11
<META NAME="description" CONTENT="Threshold detection at zero ">
 
12
<META NAME="keywords" CONTENT="main">
 
13
<META NAME="resource-type" CONTENT="document">
 
14
<META NAME="distribution" CONTENT="global">
 
15
 
 
16
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
 
17
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
 
18
 
 
19
<LINK REL="STYLESHEET" HREF="main.css">
 
20
 
 
21
</HEAD>
 
22
 
 
23
<BODY bgcolor="#FFFFFF">
 
24
 
 
25
<!--Table of Child-Links-->
 
26
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
 
27
 
 
28
<UL>
 
29
<LI><A NAME="tex2html4456"
 
30
  HREF="ZCROSS_f.htm#SECTION00563100000000000000">Library</A>
 
31
<LI><A NAME="tex2html4457"
 
32
  HREF="ZCROSS_f.htm#SECTION00563200000000000000">Description</A>
 
33
<LI><A NAME="tex2html4458"
 
34
  HREF="ZCROSS_f.htm#SECTION00563300000000000000">Dialog Box</A>
 
35
<LI><A NAME="tex2html4459"
 
36
  HREF="ZCROSS_f.htm#SECTION00563400000000000000">Default properties</A>
 
37
<LI><A NAME="tex2html4460"
 
38
  HREF="ZCROSS_f.htm#SECTION00563500000000000000">Interfacing function</A>
 
39
<LI><A NAME="tex2html4461"
 
40
  HREF="ZCROSS_f.htm#SECTION00563600000000000000">Computational function (type 1)</A>
 
41
</UL>
 
42
<!--End of Table of Child-Links-->
 
43
<HR>
 
44
 
 
45
<H2><A NAME="SECTION00563000000000000000"></A><A NAME="ZCROSS_f"></A>
 
46
<BR>
 
47
Threshold detection at zero 
 
48
</H2>
 
49
<DIV ALIGN="CENTER">
 
50
<!-- MATH
 
51
 $\epsfig{file=ZCROSS_f.eps,width=90.00pt}$
 
52
 -->
 
53
<IMG
 
54
 WIDTH="143" HEIGHT="161" ALIGN="BOTTOM" BORDER="0"
 
55
 SRC="img122.gif"
 
56
 ALT="\epsfig{file=ZCROSS_f.eps,width=90.00pt}">
 
57
</DIV>
 
58
<H3><font color="blue"><A NAME="SECTION00563100000000000000">
 
59
Library</A>
 
60
</font></H3>
 
61
Threshold
 
62
 
 
63
<H3><font color="blue"><A NAME="SECTION00563200000000000000">
 
64
Description</A>
 
65
</font></H3>
 
66
An output event is generated when all inputs (if more than one) cross
 
67
zero simultaneously.    
 
68
 
 
69
<H3><font color="blue"><A NAME="SECTION00563300000000000000">
 
70
Dialog Box</A>
 
71
</font></H3>
 
72
<DIV ALIGN="CENTER">
 
73
<TABLE CELLPADDING=3 BORDER="1">
 
74
<TR><TD ALIGN="CENTER">Set Zero-Crossing parameters</TD>
 
75
<TD></TD>
 
76
</TR>
 
77
<TR><TD ALIGN="CENTER">Input size</TD>
 
78
<TD ALIGN="CENTER">1</TD>
 
79
</TR>
 
80
</TABLE>
 
81
</DIV>
 
82
 
 
83
<UL>
 
84
<LI>Input size: a positive integer. 
 
85
</LI>
 
86
</UL>
 
87
 
 
88
<H3><font color="blue"><A NAME="SECTION00563400000000000000">
 
89
Default properties</A>
 
90
</font></H3>
 
91
 
 
92
<UL>
 
93
<LI>always active: no
 
94
</LI>
 
95
<LI>direct-feedthrough: yes
 
96
</LI>
 
97
<LI>zero-crossing: yes
 
98
</LI>
 
99
<LI>mode: no
 
100
</LI>
 
101
<LI>number/sizes of inputs: 1 / 1
 
102
</LI>
 
103
<LI>number/sizes of outputs: 0 / 
 
104
</LI>
 
105
<LI>number/sizes of activation inputs: 0 / 
 
106
</LI>
 
107
<LI>number/sizes of activation outputs: 1 / 1
 
108
</LI>
 
109
<LI>continuous-time state: no
 
110
</LI>
 
111
<LI>discrete-time state: no
 
112
</LI>
 
113
<LI>name of computational function: <EM>zcross</EM>
 
114
</LI>
 
115
</UL>
 
116
<H3><font color="blue"><A NAME="SECTION00563500000000000000">
 
117
Interfacing function</A>
 
118
</font></H3>
 
119
<TT>scilab/macros/scicos_blocks/threshold/ZCROSS_f.sci</TT>
 
120
 
 
121
<H3><font color="blue"><A NAME="SECTION00563600000000000000">
 
122
Computational function (type 1)</A>
 
123
</font></H3>
 
124
<BR>
 
125
<PRE>      subroutine zcross(flag,nevprt,t,xd,x,nx,z,nz,tvec,ntvec,
 
126
     &amp;     rpar,nrpar,ipar,nipar,u,nu,g,ng)
 
127
c     Copyright INRIA
 
128
 
 
129
c     Scicos block simulator
 
130
c     zero crossing block
 
131
c
 
132
      double precision t,xd(*),x(*),z(*),tvec(*),rpar(*),u(*),g(*)
 
133
      integer flag,nevprt,nx,nz,ntvec,nrpar,ipar(*)
 
134
      integer nipar,nu,ng
 
135
c   
 
136
 
 
137
      if ((flag.eq.3).and.(nevprt.lt.0)) then
 
138
         kev=0
 
139
         do 44 j = 1,ng
 
140
            kev=2*kev+abs(g(ng+1-j))
 
141
 44      continue
 
142
         do 45 j = 1,ng 
 
143
            kev=2*kev
 
144
            if (g(ng+1-j).eq.-1) kev=kev+1
 
145
 45      continue
 
146
 
 
147
         l=kev*ntvec
 
148
         do 10 i=1,ntvec
 
149
            tvec(i)=rpar(l+i)+t  
 
150
 10      continue
 
151
      elseif(flag.eq.9) then
 
152
         do 20 i=1,ng
 
153
            g(i)=u(i)  
 
154
 20      continue
 
155
      endif
 
156
      end
 
157
</PRE>
 
158
<BR><HR>
 
159
<ADDRESS>
 
160
Ramine Nikoukhah
 
161
2004-06-22
 
162
</ADDRESS>
 
163
</BODY>
 
164
</HTML>