Next: 5.1.2 Block data-structure definition
Up: 5.1.1 Syntax
Previous: 5.1.1 Syntax
- job=='plot': the function draws the block.
- arg1 is the data structure of the block.
- arg2 is not used.
- x,y,typ are not used.
In general, we can use standard_draw function
which draws a rectangular block, and the input and output ports. It
also handles the size, icon, and color aspects of the block.
- job=='getinputs': the function returns position and type of
input ports (regular or activation).
- arg1 is the data structure of the block.
- arg2 is not used.
- x is the vector of x coordinates of input ports.
- y is the vector of y coordinates of input ports.
- typ is the vector of input ports types (1 for regular
and 2 for activation).
In general, we can use the standard_input function.
- job=='getoutputs': returns position and type of output ports
(regular and activation).
- arg1 is the data structure of the block.
- arg2 is not used.
- x is the vector of x coordinates of output ports.
- y is the vector of y coordinates of output ports.
- typ is the vector of output ports types .
In general, we can use the standard_output function.
- job=='getorigin': returns coordinates of the lower
left point of the rectangle containing the block's silhouette.
- arg1 is the data structure of the block.
- arg2 is not used.
- x is the x coordinate of the lower left point of the block.
- y is the y coordinate of the lower left point of the block.
- typ is not used.
In general, we can use the standard_origin function.
- job=='set': opens up a dialogue for block parameter acquisition
(if any).
- arg1 is the data structure of the block.
- arg2 is not used.
- x is the new data structure of the block.
- y is not used.
- typ is not used.
- job=='define': initialization of block's data
structure (name of corresponding Computational function, type,
number and sizes of inputs and outputs, etc...).
- arg1, arg2 are not used.
- x is the data structure of the block.
- y is not used.
- typ is not used.
Next: 5.1.2 Block data-structure definition
Up: 5.1.1 Syntax
Previous: 5.1.1 Syntax
Scilab Group