<< Xcos re-useable code generator Xcos re-useable code generator

Xcos re-useable code generator >> Xcos re-useable code generator > Xcos code generator

Xcos code generator

Basic code generator with customiseable hooks and block libraries

Description

This module implements a code-generator for Xcos with multiple back-ends. Using hooks and block library to specialize the code generator for a language or a platform. As it is fully implemented in Scilab it allow any user to overload / redefine some behaviors.

Currently it generates : Scilab code.

The generated Scilab code can also be used by a translator (from Scilab to anything else) like Scilab2C or emmtrix Code Generator.

Supported Xcos blocks

ABS_VALUEzero-crossing parameter is ignored
BIGSOM_f-
CLOCK_cindependent events are re-synchronized to only one implicit master clock
CONST_m-
CONVERT-
DEMUX-
DERIVconverted to Laplace discrete ā€˜z’ notation
DOLLAR_fconverted to Laplace discrete ā€˜z’ notation
EXTRACTOR-
FROMresolved by the frontend
FROMWSBimplemented by the user in Embedded Scilab
GAINBLK_f-
scifunc_block_mimplemented by the user in Embedded Scilab. This is also used for
GOTOresolved by the frontend
IN_flabel propagated as the input variable name of the superblock function
INTRPLBLK_f-
LOGICAL_OP-
NRMSOM_f-
OUT_flabel propagated as the input variable name of the superblock function
POWBKL_f-
PRODUCT-
RELATIONALOP-
SATURATIONzero-crossing parameter is ignored, it saturates only on the next discrete step
SINBLK_f-
SQRT-
SUMMATION-
SWITCH2_m-
SUPER_fProduce an independent Scilab macro ; the block label will be the function name and each port labels will be used as inputs and outputs names to mimic a function call.
TANBLK_f-
TrigFun-

Report an issue
<< Xcos re-useable code generator Xcos re-useable code generator