Quick Links
Scilab
Scilab is a scientific software package for numerical computations providing a powerful open computing environment for engineering and scientific applications. Scilab includes hundreds of mathematical functions with the possibility to add interactively programs from various languages (C, C++, Fortran…).
It has sophisticated data structures (including lists, polynomials, rational functions, linear systems...), an interpreter and a high level programming language. For more details, check Scilab homepage!
Scicos
Scicos is a graphical dynamical system modeler and simulator toolbox included in the Scilab® engineering and scientific computation software. With Scicos you can create block diagrams to model and simulate the dynamics of hybrid dynamical systems and compile your models into executable code. Scicos is used for signal processing, systems control, queuing systems, and to study physical and biological systems. New extensions allow generation of component based modeling of electrical and hydraulic circuits using the Modelica language. For more details, check Scicos hompage!
Scilab/Scicos Code Generator for FLEX
Concept:
To develop a single-click digital control automatic code generation tool for FLEX!

Requirement:
-
A FLEX Board.
-
ERIKA Enterprise Basic GPL.
-
The Microchip tools (available for free).
-
A Microchip ICD2 (this dependency will be removed soon when it will be possible to program Flex through USB).
Procedure:
As decipted in the figure above, the process of code generation is as follows-
-
Design of a control system in Scicos.
-
Simulation and tuning of the control system in Scicos.
-
Single-click code generation for ERIKA Enterprise for FLEX.
-
Automatic flashing of the FLEX board.
-
Integration in the Scicos HIL support using the FLEX USB/wireless connection.
Project:
The Scicos-FLEX project, currently in beta stage, but is usable, contains:
-
Code generator for ERIKA Enterprise Basic.
-
Over 100 Scicos blocks ready for code generation!
-
Automatic generation and compilation of the Scicos generated application.
-
Manual flashing of the generated application on the dsPIC device on the FLEX board.
-
Working examples using the FLEX board.
-
Tutorial for the creation of a sample application included in the documentation.
-
USB and OpenZB connection blocks available.
-
Hardware in the loop working.
Future scope:
-
Automatic programming of a Scicos-generated application on the FLEX target.
-
Comprehensive documentation and examples.
Comments:
Please note that the code generator is currently a direct derivation from the Linux/RTAI Code Generator for Scilab and Scicos i.e. the code generated is correct and working but, he quality and efficiency of the code generated is not "the best" for a microcontroller (in terms of usage of RAM, complexity of the data structures, optimization of the overhead, and other things).
We are working for improving the efficiency of the code generator with INRIA Roquencourt, and for that reason you can expect changes in the quality of the code generated in the next months.
Download:
- Scicos FLEX Reference Manual (this is a link to the documentation page)
- ERIKA Enterprise for Microchip dsPIC
- Scilab 4.1.2 (local mirror) PLEASE USE THIS VERSION!!!
Version for EE 1.5.0.1
- Scicos Pack for ERIKA Enterprise Version 8.1 (zip file)
A Special thanks goes to Francesco Prosperi, Christian Nastasi and Dario Di Stefano for the work madein the last months to get the package in production!
Note: This version is NOT backward compatible with the Scicos Pack v7, because of a set of optimizations done to speed up the system compilation.
Note: You need to compile the Scicos blocks in order to get the system working. To do that, please
- open Scilab
- change directory (using the "cd" command) to the directory "C:\evidence\scilab-4.1.2\contrib\dspic"
- issue the following command:
exec builder.sce
Note: this version ONLY works with EE 1.5.0.1 for dsPIC. To install ERIKA Enterprise 1.5.0.1, please
- Download ERIKA Enterprise 1.5.0
- open RT-Druid
- go in the Menu "Help --> Install new Software..:"
- in the "Work with" textbox, please specify the following URL
http://download.tuxfamily.org/erika/webdownload/rtdruid_updates - then, proceed with the online update. There will be as et of plugins available for update.
- a restart of Eclipse will be required at the end.
- Then, you need to download and copy the following file:
common_oil.pref
Inside the directory C:\Evidence\Evidence\eclipse\configuration to configure the compiler directory.
OLD version for EE 1.4.3
- Scicos Pack for ERIKA Enterprise Version 7 (zip file)
Note: this version ONLY works with EE 1.4.3 for dsPIC)
Partners
Scilab/Scicos development team
- Simone Mannori, project METALAU (INRIA Roquencourt) ScicosLab Embedded Applications
- Roberto Bucher , SUPSI (Lugano, CH)
- Simone Mannori, Project METALAU (INRIA Roquencourt), ScicosLab Embedded Applications
Useful links



Scilab/Scicos Code Generator