Tour xcos generation » History » Version 1

Txinto Vaz, 12/19/2013 05:19 AM

1 1 Txinto Vaz
h1. Scilab/XCos generation
2 1 Txinto Vaz
3 1 Txinto Vaz
Scilab is an open source alternative to Matlab.  XCos is the Scilab extension for modeling control systems.  XCos is the open-source alternative for Simulink.  XCos has not an open source alternative to Stateflow, so FSM can not be (currently) executed interactively in the model.  Source code must be embedded into some XCos module in order to perform Model in the Loop.
4 1 Txinto Vaz
5 1 Txinto Vaz
When creating an XCos model of a system, the amount of inputs and outputs to create and the replication of these in all the subsystems that are using them is a very hard and uncomfortable way.  Currently uCANca generates big part of this work, and soon ([[v0.2]]) will generate another big part of it (the automatic wiring).
6 1 Txinto Vaz
7 1 Txinto Vaz
As an useful XCos project is not complete after the uCANca export, we call "project skeleton", not project, to the file uCANca is generating.
8 1 Txinto Vaz
9 1 Txinto Vaz
To get it, click on the link "XCos skeleton" in the project details page: http://ucanca.gatatac.org/projects/1-electric-car/gen_code.xcos
10 1 Txinto Vaz
11 1 Txinto Vaz
You will get a file that you can open with XCos.  Here are some screenshots:
12 1 Txinto Vaz
13 1 Txinto Vaz
!CapturaXCos1.png!
14 1 Txinto Vaz
15 1 Txinto Vaz
!CapturaXCos2.png!
16 1 Txinto Vaz
17 1 Txinto Vaz
!CapturaXCos3.png!
18 1 Txinto Vaz
19 1 Txinto Vaz
!CapturaXCos4.png!
20 1 Txinto Vaz
21 1 Txinto Vaz
!CapturaXCos5.png!
22 1 Txinto Vaz
23 1 Txinto Vaz
!CapturaXCos6.png!