<< scilab_computational_functions scilab_computational_functions utilities_functions >>

Scilab Help >> Xcos > programming_scicos_blocks > scilab_computational_functions > sci_struct

sci_struct

Scicos block structure of a scilab computational function

Contents

Description

A Scicos computational function of type 5 can be realized by the use of a Scilab function. That function does not really differs from all other scilab function : one can use all functions and instructions of the scilab language inside that function to do the computation.

Such a function must be written in a file with extension .sci, must be loaded inside scilab by the common loading scilab function (, , , ,...) and must have two right hand side arguments and one left hand side argument, as the following syntax:

When the simulator is calling such a computational function, it build a scilab structure (in the previous example this is the named rhs/lhs arguments) from his own internal C representation of a block structure (see for more details about the C structure of scicos blocks).

That scilab structure is a scilab typed list variable that have the following fields :

Each fields are then accessible inside the scilab computational function by the use of :

Inputs/outputs

Events

Arguments

States

Zero crossing surfaces and modes

Miscellaneous


Report an issue
<< scilab_computational_functions scilab_computational_functions utilities_functions >>