summaryrefslogtreecommitdiff
path: root/HowToInstallAndUseSCI2C.txt
blob: ec08ab42b05d871200452e9f2df4262cfbfbdb31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
----------------------------
--- HOW TO INSTALL SCI2C ---
----------------------------
1. Install scilab-4.1.2.exe

2. Configure the following two parameters in Scilab2C/LaunchRunSCI2C.sci:
   SCI2CDirectory
   SCI2CInputPrmFileName

3. Configure the following parameters in SCI2CTests\test999_WorkingDir\SCI2CInputParameters.sce
   UserSciCodeMainDir
   CCompilerPathStyle
   Sci2CLibMainHeaderFName

------------------------
--- HOW TO USE SCI2C ---
------------------------
4. Edit mainfunction.sci according to the scilab algorithm to be converted into C

5. Start SCI2C conversion typing the following command in the Scilab workspace:
   mclose('all'); cd <path of "Scilab2C" directory>; exec LaunchRunSCI2C.sci

6. Compile/Execute C code by using the makefile created in SCI2CTests\test999_WorkingDir\C_Code

7. Compare the results with the Scilab execution by typing again
   mclose('all'); cd <path of "Scilab2C" directory>; exec LaunchRunSCI2C.sci
   (answer n when the SCI2C attempts to convert again the scilab code)