Scilab/Scicos Code Generator for FLEX This page contains the information related to the Scilab/Scicos code generator for the FLEX Board. Main idea: Develop a single-click digital control automatic code generation tool for FLEX! How to installPlease read the documentation at the end of this page. The FlowThe envisioned flow is depicted by the following picture: Figure 1: Scilab/Scicos development flow for ERIKA Enterprise and FLEX The steps of the development flow are the following: - 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
RequirementsTo play with the code generator you need at least: - 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);
Project status The project is still in beta, but it is usable to make simple and complex controllers. The current version status is the following: 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;
To be done: - Automatic programming of a Scicos-generated application on the FLEX target;
- Integration with the USB port and Scicos HIL;
- Comprehensive documentation and examples;
IMPORTANT Note: Please note that the code generator is currently a direct derivation from the Linux/RTAI Code Generator for Scilab and Scicos. That means two things: - The code generated is correct and working, but...
- The 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. You are welcome to join us and to give feedback on the tool to help us improving it! Download resources and links
|