Discrete buffer block
This block is a discrete buffer that allow the record of data of regular links during the simulation.
Data are recorded in the discrete state of the block (z) or in a global Scilab variable.
- Size of inputs
Vector of integers. Set the size of the regulars inputs (can be
0).
Dimension of this vector gives the number of regular inputs. For that block, each dimension must be equal.
Properties : Type 'vec' of size -1.
- Size of buffer
Integer. Give the total size of the discrete buffer.
Each dimension of the regular inputs must be less or equal than this value.
Properties : Type 'vec' of size 1.
- Store event values (no:0, yes:1)
Integer. If set to 1, this parameter allows user to store also event date when data is stored in the discrete buffer.
Properties : Type 'vec' of size 1.
- Global scilab variable name
String. This parameter informs a symbolic variable name. If set, this dialog parameter allows user to store data in a global scilab variable.
After simulation or after a stop action, one can entered to "Calc" mode (or return in Scilab by closing Scicos) and load stored data in the buffer with the instruction :
-
global myvar
where "myvar" is the string given in this dialog parameter.
Properties : Type 'str' of size 1.
- Initial counter value
Integer. This parameter gives the initial index in the buffer when that block begins to record data.
This value must be less than the size of the buffer.
Properties : Type 'vec' of size 1.
- Inherit (no:0, yes:1)
Herits events by its regular input ports (disable the event input port).
Properties : Type 'vec' of size 1.
- always active: no
- direct-feedthrough: no
- zero-crossing: no
- mode: no
- regular inputs:
- port 1 : size [-1,1] / type 1
- number/sizes of activation inputs: 1
- number/sizes of activation outputs: 0
- continuous-time state: no
- discrete-time state: yes
- object discrete-time state: no
- name of computational function: z_buf41
- MODNUMCOS/macros/scicos_blocks/Sinks/ZBUF_c.sci [view code]
- MODNUMCOS/routines/sinks/z_buf41.c (Type 4) [view code]
A. Layec