Event discrete buffer block
This block is a discrete buffer that allow the record of event dates during the simulation.
Data are recorded in the discrete state of the block (z) or in a global Scilab variable.
- Size of buffer
Integer. Set the size of the buffer for the only one event input.
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 blocks begins to record data.
This value must be less than the size of the buffer.
Properties : Type 'vec' of size 1.
- Computation of period jitter (no:0, yes:1)
Integer. If set to 1, then the block computes and store period jitter in discrete state instead of value of event date.
Properties : Type 'vec' of size 1.
- always active: no
- direct-feedthrough: no
- zero-crossing: no
- mode: no
- 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_buft41
- MODNUMCOS/macros/scicos_blocks/Sinks/ZBUFT_c.sci [view code]
- MODNUMCOS/routines/sinks/z_buft41.c (Type 4) [view code]
A. Layec