23
23
* See the file ./license.txt
25
25
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="Modulo_Count" xml:lang="en_US">
27
<refname>Modulo_Count</refname>
28
<refpurpose>Modulo counter (0 to N counter)</refpurpose>
31
<title>Block Screenshot</title>
35
<imagedata fileref="../../../../images/palettes/Modulo_Count.png" align="center" valign="middle"/>
40
<refsection id="Contents_Modulo_Count">
41
<title>Contents</title>
45
<link linkend="Modulo_Count">Modulo counter (0 to N counter)</link>
52
<xref linkend="Palette_Modulo_Count">Palette</xref>
57
<xref linkend="Description_Modulo_Count">Description</xref>
62
<xref linkend="Datatype_Modulo_Count">Data types</xref>
67
<xref linkend="Dialogbox_Modulo_Count">Dialog box</xref>
72
<xref linkend="Defaultproperties_Modulo_Count">Default properties</xref>
77
<xref linkend="Example_Modulo_Count">Example</xref>
82
<xref linkend="Interfacingfunction_Modulo_Count">Interfacing function</xref>
87
<xref linkend="Computationalfunction_Modulo_Count">Computational function</xref>
92
<xref linkend="Seealso_Modulo_Count">See also</xref>
99
<refsection id="Palette_Modulo_Count">
100
<title>Palette</title>
104
<link linkend="Sources_pal">Sources palette</link>
109
<refsection id="Description_Modulo_Count">
110
<title>Description</title>
112
It is a discrete block. The block outputs a periodic scalar piecewise constant signal. Signal begin at <emphasis role="bold">Initial State</emphasis> value. The output is incremented when block received an event on its activation input until output reaches the <emphasis role="bold">Upper Limit</emphasis> parameter value. At this time the output is reset to 0. For a periodic event input, the output is a quantized sawtooth signal.
115
<refsection id="Datatype_Modulo_Count">
116
<title>Data type</title>
120
Output: scalar double.
125
<refsection id="Dialogbox_Modulo_Count">
126
<title>Dialog box</title>
130
<imagedata fileref="../../../gui/sources_pal/en_US/Modulo_Count_gui.png" align="center"/>
138
<emphasis role="bold">Initial State</emphasis>
140
<para> Scalar. Initial discrete state.</para>
141
<para> Properties : Type 'vec' of size 1 </para>
145
<emphasis role="bold">Upper Limit (positive number)</emphasis>
147
<para> Scalar. Number of required step.</para>
148
<para> Properties : Type 'vec' of size 1 </para>
152
<refsection id="Defaultproperties_Modulo_Count">
153
<title>Default properties</title>
157
<emphasis role="bold">always active:</emphasis> no
162
<emphasis role="bold">direct-feedthrough:</emphasis> no
167
<emphasis role="bold">zero-crossing:</emphasis> no
172
<emphasis role="bold">mode:</emphasis> no
177
<emphasis role="bold">regular outputs:</emphasis>
180
<emphasis role="bold">- port 1 : size [1,1] / type 1</emphasis>
185
<emphasis role="bold">number/sizes of activation inputs:</emphasis> 1
190
<emphasis role="bold">number/sizes of activation outputs:</emphasis> 0
195
<emphasis role="bold">continuous-time state:</emphasis> no
200
<emphasis role="bold">discrete-time state:</emphasis> yes
205
<emphasis role="bold">object discrete-time state:</emphasis> no
210
<emphasis role="bold">name of computational function:</emphasis>
211
<emphasis role="italic">modulo_count</emphasis>
216
<refsection id="Example_Modulo_Count">
217
<title>Exemple</title>
219
This diagram shows the Modulo_count usage as a quantized sawtooth generator application.
220
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/modulo_count_en_US.xcos">
221
Open this example in Xcos
226
<imagedata fileref="../../../examples/sources_pal/en_US/modulo_count_diagram_en_US.png" align="center"/>
230
<refsection id="Interfacingfunction_Modulo_Count">
231
<title>Interfacing function</title>
235
<link type="scilab" linkend="scilab.scinotes/scicos_blocks/macros/Sources/Modulo_Count.sci">SCI/modules/scicos_blocks/macros/Sources/Modulo_Count.sci</link>
240
<refsection id="Computationalfunction_Modulo_Count">
241
<title>Computational function</title>
244
<para> SCI/modules/scicos_blocks/src/c/modulo_count.c (Type 4)</para>
248
<refsection id="Seealso_Modulo_Count">
249
<title>See also</title>
252
<link linkend="GENSQR_f">GENSQR_f</link>
255
<link linkend="SAWTOOTH_f">SAWTOOTH_f</link>
258
<link linkend="Sigbuilder">Sigbuilder</link>
27
<refname>Modulo_Count</refname>
28
<refpurpose>Modulo counter (0 to N counter)</refpurpose>
31
<title>Block Screenshot</title>
35
<imagedata fileref="../../../../images/palettes/Modulo_Count.png" align="center" valign="middle"/>
40
<refsection id="Contents_Modulo_Count">
41
<title>Contents</title>
45
<link linkend="Modulo_Count">Modulo counter (0 to N counter)</link>
52
<xref linkend="Palette_Modulo_Count">Palette</xref>
57
<xref linkend="Description_Modulo_Count">Description</xref>
62
<xref linkend="Datatype_Modulo_Count">Data types</xref>
67
<xref linkend="Dialogbox_Modulo_Count">Dialog box</xref>
72
<xref linkend="Defaultproperties_Modulo_Count">Default properties</xref>
77
<xref linkend="Example_Modulo_Count">Example</xref>
82
<xref linkend="Interfacingfunction_Modulo_Count">Interfacing function</xref>
87
<xref linkend="Computationalfunction_Modulo_Count">Computational function</xref>
92
<xref linkend="Seealso_Modulo_Count">See also</xref>
99
<refsection id="Palette_Modulo_Count">
100
<title>Palette</title>
104
<link linkend="Sources_pal">Sources palette</link>
109
<refsection id="Description_Modulo_Count">
110
<title>Description</title>
112
It is a discrete block. The block outputs a periodic scalar piecewise constant signal. Signal begin at <emphasis role="bold">Initial State</emphasis> value. The output is incremented when block received an event on its activation input until output reaches the <emphasis role="bold">Upper Limit</emphasis> parameter value. At this time the output is reset to 0. For a periodic event input, the output is a quantized sawtooth signal.
115
<refsection id="Datatype_Modulo_Count">
116
<title>Data type</title>
120
Output: scalar double.
125
<refsection id="Dialogbox_Modulo_Count">
126
<title>Dialog box</title>
130
<imagedata fileref="../../../gui/sources_pal/en_US/Modulo_Count_gui.png" align="center"/>
138
<emphasis role="bold">Initial State</emphasis>
140
<para> Scalar. Initial discrete state.</para>
141
<para> Properties : Type 'vec' of size 1 </para>
145
<emphasis role="bold">Upper Limit (positive number)</emphasis>
147
<para> Scalar. Number of required step.</para>
148
<para> Properties : Type 'vec' of size 1 </para>
152
<refsection id="Defaultproperties_Modulo_Count">
153
<title>Default properties</title>
157
<emphasis role="bold">always active:</emphasis> no
162
<emphasis role="bold">direct-feedthrough:</emphasis> no
167
<emphasis role="bold">zero-crossing:</emphasis> no
172
<emphasis role="bold">mode:</emphasis> no
177
<emphasis role="bold">regular outputs:</emphasis>
180
<emphasis role="bold">- port 1 : size [1,1] / type 1</emphasis>
185
<emphasis role="bold">number/sizes of activation inputs:</emphasis> 1
190
<emphasis role="bold">number/sizes of activation outputs:</emphasis> 0
195
<emphasis role="bold">continuous-time state:</emphasis> no
200
<emphasis role="bold">discrete-time state:</emphasis> yes
205
<emphasis role="bold">object discrete-time state:</emphasis> no
210
<emphasis role="bold">name of computational function:</emphasis>
211
<emphasis role="italic">modulo_count</emphasis>
216
<refsection id="Example_Modulo_Count">
217
<title>Exemple</title>
219
This diagram shows the Modulo_count usage as a quantized sawtooth generator application.
220
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/modulo_count_en_US.xcos">
221
Open this example in Xcos
226
<imagedata fileref="../../../examples/sources_pal/en_US/modulo_count_diagram_en_US.png" align="center"/>
230
<refsection id="Interfacingfunction_Modulo_Count">
231
<title>Interfacing function</title>
235
<link type="scilab" linkend="scilab.scinotes/scicos_blocks/macros/Sources/Modulo_Count.sci">SCI/modules/scicos_blocks/macros/Sources/Modulo_Count.sci</link>
240
<refsection id="Computationalfunction_Modulo_Count">
241
<title>Computational function</title>
244
<para> SCI/modules/scicos_blocks/src/c/modulo_count.c (Type 4)</para>
248
<refsection id="Seealso_Modulo_Count">
249
<title>See also</title>
252
<link linkend="GENSQR_f">GENSQR_f</link>
255
<link linkend="SAWTOOTH_f">SAWTOOTH_f</link>
258
<link linkend="Sigbuilder">Sigbuilder</link>