Previous Next Contents

13  Blocks

13.1   ABSBLK_f Scicos abs block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block realizes element-wise vector absolute value operation. This block has a single input and a single output port. Port dimension is determined by the context.



13.2   AFFICH_f Scicos numerical display




DIALOGUE PARAMETERS :




DESCRIPTION :

This block displays the value of its unique input inside the block (in the diagram) during simulation. The block must be located in the main Scicos window.

Warning: each time the block is moved user must click on it to set its parameters. The display position is then automatically updated.


See Also : SCOPE_f X



13.3   ANDLOG_f Scicos logical AND block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block, with two event inputs and a regular output, outputs +1 or -1 on its regular ouput depending on input events.


See Also : IFTHEL_f X



13.4   ANIMXY_f Scicos 2D animated visualization block




DESCRIPTION :

This block realizes the visualization of the evolution of the two regular input signals by drawing the second input as a function of the first at instants of events on the event input port.


DIALOGUE PARAMETERS :




REMARKS :

Output window number, Output window size, Output window position are only taken into account at the initialisation time of the simulation.




See Also : SCOPE_f X, EVENTSCOPE_f X, SCOPXY_f X



13.5   BIGSOM_f Scicos addition block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block realize weighted sum of the input vectors. The output is vector kth component is the sum of the kth components of each input ports weighted by sgn(k).


See Also : GAIN_f X, SOM_f X



13.6   CLINDUMMY_f Scicos dummy continuous system with state




DESCRIPTION :

This block should be placed in any block diagram that contains a zero-crossing block but no continuous system with state. The reason for that is that it is the ode solver that find zero crossing surfaces.


See Also : ZCROSS_f X



13.7   CLKINV_f Scicos Super Block event input port




DESCRIPTION :

This block must only be used inside Scicos Super Blocks to represent an event input port.

In a Super Block, the event input ports must be numbered from 1 to the number of event input ports.


DIALOGUE PARAMETERS :




See Also : IN_f X, OUT_f X, CLKOUTV_f X



13.8   CLKIN_f Scicos Super Block event input port




DESCRIPTION :

This block must only be used inside Scicos Super Blocks to represent an event input port.

In a Super Block, the event input ports must be numbered from 1 to the number of event input ports.


DIALOGUE PARAMETERS :




See Also : IN_f X, OUT_f X, CLKOUT_f X



13.9   CLKOUTV_f Scicos Super Block event output port




DESCRIPTION :

This block must only be used inside Scicos Super Blocks to represent an event output port.

In a Super_Block, the event output ports must be numbered from 1 to the number of event output ports.


DIALOGUE PARAMETERS :




See Also : IN_f X, OUT_f X, CLKINV_f X



13.10   CLKOUT_f Scicos Super Block event output port




DESCRIPTION :

This block must only be used inside Scicos Super Blocks to represent an event output port.

In a Super_Block, the event output ports must be numbered from 1 to the number of event output ports.


DIALOGUE PARAMETERS :




See Also : IN_f X, OUT_f X, CLKIN_f X



13.11   CLKSOMV_f Scicos event addition block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block is an event addition block with up to three inputs. The output reproduces the events on all the input ports. Strictly speaking, CLKSOMV is not a Scicos block because it is discarded at the compilation phase. The inputs and output of CLKSOMV are synchronized.



13.12   CLKSOM_f Scicos event addition block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block is an event addition block with up to three inputs. The output reproduces the events on all the input ports. Strictly speaking, CLKSOM is not a Scicos block because it is discarded at the compilation phase. The inputs and output of CLKSOM are synchronized.



13.13   CLKSPLIT_f Scicos event split block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block is an event split block with an input and two outputs. The outputs reproduces the event the input port on each output ports. Strictly speaking, CLKSPLIT is not a Scicos block because it is discarded at the compilation phase. This block is automatically created when creating a new link issued from a link.

The inputs and output of CLKSPLIT are synchronized.



13.14   CLOCK_f Scicos periodic event generator




DESCRIPTION :

This block is a Super Block constructed by feeding back the output of an event delay block into its input event port. The unique output of this block generates a regular train of events.


DIALOGUE PARAMETERS :




See Also : EVTDLY_f X



13.15   CLR_f Scicos continuous-time linear system (SISO transfer function)




DIALOGUE PARAMETERS :




DESCRIPTION :

This block realizes a SISO linear system represented by its rational transfer function Numerator/Denominator. The rational function must be proper.


See Also : CLSS_f X, INTEGRAL_f X



13.16   CLSS_f Scicos continuous-time linear state-space system




DESCRIPTION :

This block realizes a continuous-time linear state-space system.
xdot=A*x+B*u
y   =C*x+D*u
The system is defined by the (A,B,C,D) matrices and the initial state x0. The dimensions must be compatible.


DIALOGUE PARAMETERS :




See Also : CLR_f X, INTEGRAL_f X



13.17   CONST_f Scicos constant value(s) generator




DIALOGUE PARAMETERS :




DESCRIPTION :

This block is a constant value(s) generator.



13.18   COSBLK_f Scicos cosine block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block realizes vector cosine operation. y(i)=cos(u(i)). The port input and output port sizes are equal and determined by the context.


See Also : SINBLK_f X, GENSIN_f X



13.19   CURV_f Scicos block, tabulated function of time




DIALOGUE PARAMETERS :

Tabulated function is entered using a graphics curve editor (see edit_curv in Scilab documentation)




DESCRIPTION :

This block defines a tabulated function of time. Between mesh points block performs a linear interpolation. Outside tabulation block outputs last tabulated value.

User may define the tabulation of the function using a curve editor.



13.20   DELAYV_f Scicos time varying delay block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block implements a time varying discretized delay. The value of the delay is given by the second input port. The delayed signal enters the first input port and leaves the unique output prot.

The first event output port must be connected to unique input event port if auto clocking is desired. But the input event port can also be driven by outside clock. In that case, the max delay is size of initial condition times the period of the incoming clock.

The second output event port generates an event if the second input goes above the maximum delay specified. This signal can be ignored. In that case the output will be delayed by max delay.




See Also : DELAY_f X, EVTDLY_f X, REGISTER_f X



13.21   DELAY_f Scicos delay block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block implements as a discretized delay. It is in fact a Scicos super block formed by a shift register and a clock.

value of the delay is given by the discretization time step multiplied by the number of states of the register minus one


See Also : DELAYV_f X, EVTDLY_f X, REGISTER_f X



13.22   DEMUX_f Scicos demultiplexer block




DIALOGUE PARAMETERS :




DESCRIPTION :

Given a vector valued input this block splits inputs over vector valued outputs. So u=[y1;y2....;yn], where yi are numbered from top to bottom. Input and Output port sizes are determined by the context.


See Also : MUX_f X



13.23   DLRADAPT_f Scicos discrete-time linear adaptive system




DIALOGUE PARAMETERS :




DESCRIPTION :

This block realizes a SISO linear system represented by its rational transfer function whose numerator and denominator roots are tabulated functions of the second block input. The rational function must be proper.

Roots are interpolated linearly between mesh points.




See Also : DLSS_f X, DLR_f X



13.24   DLR_f Scicos discrete-time linear system (transfer function)




DIALOGUE PARAMETERS :




DESCRIPTION :

This block realizes a SISO linear system represented by its rational transfer function (in the symbolic variable z). The rational function must be proper.


See Also : DLSS_f X, DLRADAPT_f X



13.25   DLSS_f Scicos discrete-time linear state-space system




DESCRIPTION :

This block realizes a discrete-time linear state-space system. The system is defined by the (A,B,C,D) matrices and the initial state x0. The dimensions must be compatible. At the arrival of an input event on the unique input event port, the state is updated.


DIALOGUE PARAMETERS :




See Also : DLR_f X, INTEGRAL_f X, CLSS_f X, DLSS_f X



13.26   EVENTSCOPE_f Scicos event visualization block




DESCRIPTION :

This block realizes the visualization of the input event signals.


DIALOGUE PARAMETERS :




REMARKS :

Output window number, Output window size, Output window position are only taken into account at the initialisation time of the simulation.


See Also : SCOPXY_f X, SCOPE_f X, ANIMXY_f X



13.27   EVTDLY_f Scicos event delay block




DESCRIPTION :

One event is generated Delay after an event enters the unique input event port. Block may also generate an initial output event.


DIALOGUE PARAMETERS :




See Also : CLOCK_f X



13.28   EVTGEN_f Scicos event firing block




DESCRIPTION :

One event is generated on the unique output event port if Event time is larger than equal to zero, if not, no event is generated.


DIALOGUE PARAMETERS :




See Also : CLOCK_f X, EVTDLY_f X



13.29   EXPBLK_f Scicos a^u block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block realizes y(i)=a^u(i). The input and output port sizes are determined by the compiler.



13.30   GAINBLK_f Scicos gain block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block is a gain block. The output is the Gain times the regular input (vector). The dimensions of Gain determines the input (number of columns) and output (number of rows) port sizes.



13.31   GAIN_f Scicos gain block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block is a gain block. The output is the Gain times the regular input (vector). The dimensions of Gain determines the input (number of columns) and output (number of rows) port sizes.

This block is obsolete. Use GAINBLK_f block instead of it



13.32   GENERAL_f Scicos general zero crossing detector




DESCRIPTION :

Depending on the sign (just before the crossing) of the inputs and the input numbers of the inputs that have crossed zero, an event is programmed (or not) with a given delay, for each output. The number of combinations grows so fast that this becomes unusable for blocks having more than 2 or 3 inputs. For the moment this block is not documented.


DIALOGUE PARAMETERS :




See Also : NEGTOPOS_f X, POSTONEG_f X, ZCROSS_f X



13.33   GENERIC_f Scicos generic interfacing function




DESCRIPTION :

This block can realize any type of block. The computational function must already be defined in Scilab, Fortran or C code.


DIALOGUE PARAMETERS :




See Also : scifunc_block X



13.34   GENSIN_f Scicos sinusoid generator




DESCRIPTION :

This block is a sine wave generator: M*sin(F*t+P)


DIALOGUE PARAMETERS :




See Also : GENSQR_f X, RAND_f X, SAWTOOTH_f X



13.35   GENSQR_f Scicos square wave generator




DESCRIPTION :

This block is a square wave generator: output takes values -M and M. Every time an event is received on the input event port, the output switches from -M to M, or M to -M.


DIALOGUE PARAMETERS :




See Also : GENSIN_f X, SAWTOOTH_f X, RAND_f X



13.36   HALT_f Scicos Stop block




DIALOGUE PARAMETERS :




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).



13.37   IFTHEL_f Scicos if then else block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

One event is generated on one of the output event ports when an input event arrives. Depending on the sign of the regular input, the event is generated on the first or second output.

This is a synchro block, i.e., input and output event are synchronized.



13.38   INTEGRAL_f Scicos simple integrator




DESCRIPTION :

This block is an integrator. The output is the integral of the input.


DIALOGUE PARAMETERS :




See Also : CLSS_f X, CLR_f X



13.39   INTRP2BLK_f Scicos 2D linear interpolation block




DIALOGUE PARAMETERS :




DESCRIPTION :

The output of this block is a function of the inputs obtained by bilinear interpolation. This block has two scalar inputs and a single scalar output. The X(i) and Y(i) give respectively the X coordinate and the Y coordinate of the i-th data point to be interpolated and Z(Y(i),X(i)) its value.



13.40   INTRPLBLK_f Scicos linear interpolation block




DIALOGUE PARAMETERS :




DESCRIPTION :

The output of this block is a function of the input obtained by linear interpolation. This block has a single scalar input and a single scalar output port. The X coord. and Y coord. give respectively the X coordinate and the Y coordinate of the data points to be interpolated. X coord must be strictly increasing.



13.41   INVBLK_f Scicos inversion block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block computes y(i)=1/u(i). The input (output) size is determined by the context



13.42   IN_f Scicos Super Block regular input port




DESCRIPTION :

This block must only be used inside Scicos Super Blocks to represent a regular input port. The input size is determined by the context.

In a Super Block, regular input ports must be numbered from 1 to the number of regular input ports.


DIALOGUE PARAMETERS :




See Also : CLKIN_f X, OUT_f X, CLKOUT_f X



13.43   LOGBLK_f Scicos logarithm block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block realizes y(i)=log(u(i))/log(a). The input and output port sizes are determined by the context.



13.44   LOOKUP_f Scicos Lookup table with graphical editor




DESCRIPTION :

This block realizes a non-linear function defined using a graphical editor.



13.45   MAX_f Scicos max block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

The block outputs the maximum of the input vector: y=max(u1,...un). The input vector size is determined by the compiler according to the connected blocks port sizes.


See Also : MIN_f X



13.46   MCLOCK_f Scicos 2 frequency event clock




DESCRIPTION :

This block is a Super Block constructed by feeding back the outputs of an MFCLCK block into its input event port. The two outputs of this block generate regular train of events, the frequency of the first input being equal to that of the second output divided by an integer n. The two outputs are synchronized (this is impossible for standard blocks; this is a Super Block).


DIALOGUE PARAMETERS :




See Also : MFCLCK_f X, CLOCK_f X



13.47   MFCLCK_f Scicos basic block for frequency division of event clock




DESCRIPTION :

This block is used in the Super Block MCLOCK. The input event is directed once every n times to output 1 and the rest of the time to output 2. There is a delay of "Basic period" in the transmission of the event. If this period >0 then the second output is initially fired. It is not if this period=0. In the latter case, the input is driven by an event clock and in the former case, feedback can be used.


DIALOGUE PARAMETERS :




See Also : MCLOCK_f X, CLOCK_f X



13.48   MIN_f Scicos min block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

The block outputs the minimum of the input vector: y=min(u1,...un). The input vector size is determined by the compiler according to the connected blocks port sizes.


See Also : MAX_f X



13.49   MUX_f Scicos multiplexer block




DIALOGUE PARAMETERS :




DESCRIPTION :

Given n vector valued inputs this block merges inputs in an single output vector. So y=[u1;u2....;un], where ui are numbered from top to bottom. Input and Output port sizes are determined by the context.


See Also : MUX_f X



13.50   NEGTOPOS_f Scicos negative to positive detector




DESCRIPTION :

An output event is generated when the unique input crosses zero with a positive slope.


See Also : POSTONEG_f X, ZCROSS_f X, GENERAL_f X



13.51   OUT_f Scicos Super Block regular output port




DIALOGUE PARAMETERS :




DESCRIPTION :

This block must only be used inside Scicos Super Blocks to represent a regular output port.

In a Super Block, regular output ports must be numbered from 1 to the number of regular output ports.

size of the output is determined by the compiler according to the connected blocks port sizes.




See Also : CLKIN_f X, IN_f X, CLKOUT_f X



13.52   POSTONEG_f Scicos positive to negative detector




DESCRIPTION :

An output event is generated when the unique input crosses zero with a negative slope.


See Also : NEGTOPOS_f X, ZCROSS_f X, GENERAL_f X



13.53   POWBLK_f Scicos u^a block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block realizes y(i)=u(i)^a. The input and output port sizes are determined by the compiler according to the connected blocks port sizes.



13.54   PROD_f Scicos element wise product block




DESCRIPTION :

The output is the element wize product of the inputs.



13.55   QUANT_f Scicos Quantization block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block outputs the quantization of the input according to a choice of methods

for Round
method

y(i)=Step*(int(u(i)/Step+0.5)-0.5)
if u(i)<0.

y(i)=Step*(int(u(i)/Step-0.5)+0.5)
. if u(i)>=0.

For truncation method

y(i)=Step*(int(u(i)/Step+0.5))
if u(i)<0.

y(i)=Step*(int(u(i)/Step-0.5))
if u(i)>=0.

For floor method

y(i)=Step*(int(u(i)/Step+0.5))
.

For ceil method

y(i)=Step*(int(u(i)/Step-0.5))
.



13.56   RAND_f Scicos random wave generator




DESCRIPTION :

This block is a random wave generator: each output component takes piecewise constant random values. Every time an event is received on the input event port, the outputs take new independent random values.

output port size is given by the size of A
and B vectors


DIALOGUE PARAMETERS :




See Also : GENSIN_f X, SAWTOOTH_f X, GENSQR_f X



13.57   REGISTER_f Scicos shift register block




DESCRIPTION :

This block realizes a shift register. At every input event, the register is shifted one step.


DIALOGUE PARAMETERS :




See Also : DELAY_f X, DELAYV_f X, EVTDLY_f X



13.58   RELAY_f Scicos relay block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block routes one of the regular inputs to the unique regular output. the choice of which input is to be routed is done, initially by the "initial connected input" parameter. Then, every time an input event arrives on the i-th input event port, the i-th regular input port is routed to the regular output.



13.59   RFILE_f Scicos "read from file" block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block allows user to read datas in a file, in formatted or binary mode. Output record selection and Time record Selection allows the user to select data among file records.

Each call to the block advance one record in the file.




See Also : WFILE_f X



13.60   SAMPLEHOLD_f Scicos Sample and hold block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

Each time an input event is received block copy its input on the output and hold it until input event. For periodic Sample and hold, event input must be generated by a Clock.


See Also : DELAY_f X, CLOCK_f X



13.61   SAT_f Scicos Saturation block




DESCRIPTION :

This block realizes the non-linear function: saturation.


DIALOGUE PARAMETERS :




See Also : LOOKUP_f X



13.62   SAWTOOTH_f Scicos sawtooth wave generator




DESCRIPTION :

This block is a sawtooth wave generator: output is (t-t_i) from ti to t_(i+1) where t_i and t_(i+1) denote the times of two successive input events.


DIALOGUE PARAMETERS :

None.


See Also : GENSIN_f X, GENSQR_f X, RAND_f X



13.63   SCOPE_f Scicos visualization block




DESCRIPTION :

This block realizes the visualization of the evolution of the signals on the standard input port(s) at instants of events on the event input port.


DIALOGUE PARAMETERS :




REMARKS :

Output window number, Output window size, Output window position are only taken into account at the initialisation time of the simulation.




See Also : SCOPXY_f X, EVENTSCOPE_f X, ANIMXY_f X



13.64   SCOPXY_f Scicos visualization block




DESCRIPTION :

This block realizes the visualization of the evolution of the two regular input signals by drawing the second input as a function of the first at instants of events on the event input port.


DIALOGUE PARAMETERS :




REMARKS :

Output window number, Output window size, Output window position are only taken into account at the initialisation time of the simulation.




See Also : SCOPE_f X, EVENTSCOPE_f X, ANIMXY_f X



13.65   SELECT_f Scicos selector block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block routes one of the regular inputs to the unique regular output. the choice of which input is to be routed is done, initially by the "initial connected input" parameter. Then, every time the block is activated through its i-th input activation port, the i-th regular input value port is put to the regular output.



13.66   SINBLK_f Scicos sine block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block realizes vector sine operation. y(i)=sin(u(i)). The input and output port sizes are equal and determined by the context.



13.67   SOM_f Scicos addition block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block is a sum. The output is the element-wise sum of the inputs.

Input ports are located at up, left or right and down position. You must specify 3 gain numbers but if only two links are connected only the first values are used, ports are numbered anti-clock wise.


See Also : GAIN_f X



13.68   SPLIT_f Scicos regular split block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block is a regular split block with an input and two outputs. The outputs reproduces the input port on each output ports. Strictly speaking, SPLIT is not a Scicos block because it is discarded at the compilation phase. This block is automatically created when creating a new link issued from a link.

Port sizes are determined by the context.



13.69   STOP_f Scicos Stop block




DIALOGUE PARAMETERS :




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).



13.70   SUPER_f Scicos Super block




DESCRIPTION :

This block opens up a new Scicos window for editing a new block diagram. This diagram describes the internal functions of the super block.

Super block inputs and outputs (regular or event) are designated by special (input or output) blocks.

Regular input blocks must be numbered from 1 to the number of regular input ports. Regular input ports of the super block are numbered from the top of the block shape to the bottom.

Regular output portss must be numbered from 1 to the number of regular output ports. Regular output ports of the super block are numbered from the top of the block shape to the bottom.

Event input blocks must be numbered from 1 to the number of event input ports. Event input ports of the super block are numbered from the left of the block shape to the right.

Event output ports must be numbered from 1 to the number of event output ports. Event output ports of the super block are numbered from the left of the block shape to the right.


See Also : CLKIN_f X, OUT_f X, CLKOUT_f X, IN_f X



13.71   TANBLK_f Scicos tan block




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

This block realizes vector tangent operation. input (output) port size is determined by the compiler.


See Also : SINBLK_f X



13.72   TCLSS_f Scicos jump continuous-time linear state-space system




DESCRIPTION :

This block realizes a continuous-time linear state-space system with the possibility of jumps in the state. The number of inputs to this block is two. The first input is the regular input of the linear system, the second carries the new value of the state which is copied into the state when an event arrives at the unique event input port of this block. That means the state of the system jumps to the value present on the second input (of size equal to that of the state). The system is defined by the (A,B,C,D) matrices and the initial state x0. The dimensions must be compatible. The sizes of inputs and outputs are adjusted automatically.


DIALOGUE PARAMETERS :




See Also : CLSS_f X, CLR_f X



13.73   TEXT_f Scicos text drawing block




DIALOGUE PARAMETERS :




DESCRIPTION :

This special block is only use to add text at any point of the diagram window. It has no effect on the simulation.



13.74   TIME_f Scicos time generator




DIALOGUE PARAMETERS :

None.


DESCRIPTION :

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



13.75   TRASH_f Scicos Trash block




DIALOGUE PARAMETERS :

None


DESCRIPTION :

This block does nothing. It simply allows to safely connect the outputs of other blocks which should be ignored. Useful for sinking outputs of no interest. The input size is determined by the compiler.



13.76   WFILE_f Scicos "write to file" block




DIALOGUE PARAMETERS :




DESCRIPTION :

This block allows user to save data in a file, in formatted and binary mode. Each call to the block corresponds to a record in the file. Each record has the following form: [t,V1,...,Vn] where t is the value of time when block is called and Vi is the ith input value


See Also : RFILE_f X



13.77   ZCROSS_f Scicos zero crossing detector




DESCRIPTION :

An output event is generated when all inputs (if more than one) cross zero simultaneously.


DIALOGUE PARAMETERS :




See Also : POSTONEG_f X, GENERAL_f X



13.78   scifunc_block Scicos block defined interactively




DESCRIPTION :

This block can realize any type of Scicos block. The function of the block is defined interactively using dialogue boxes and in Scilab language. During simulation, these instructions are interpreted by Scilab; the simulation of diagrams that include these types of blocks is slower. For more information see Scicos reference manual.


DIALOGUE PARAMETERS :




See Also : GENERIC_f X




Previous Next Contents