https://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&feed=atom&action=historyHow to add a new Scicos block to ERIKA Enterprise - Revision history2024-03-29T08:17:46ZRevision history for this page on the wikiMediaWiki 1.16.4https://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=5476&oldid=prevErikadds: /* Scicoslab 4.4b7 */2013-09-25T14:19:49Z<p><span class="autocomment">Scicoslab 4.4b7</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 14:19, 25 September 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>These are a few notes useful if you want to create a new block in Scicos and the corresponding implementation function in ERIKA Enterprise.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>These are a few notes useful if you want to create a new block in Scicos and the corresponding implementation function in ERIKA Enterprise.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>= Scicoslab 4.<del class="diffchange diffchange-inline">4b7 </del>=</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>= Scicoslab 4.<ins class="diffchange diffchange-inline">4.1 </ins>=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>This section describes how to create a new block for Erika Enterprise, and applies the Scicoslab 4.<del class="diffchange diffchange-inline">4b7 </del>version of the toolbox.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>This section describes how to create a new block for Erika Enterprise, and applies the Scicoslab 4.<ins class="diffchange diffchange-inline">4.1 </ins>version of the toolbox.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Installation steps:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Installation steps:</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># Install Scicoslab 4.<del class="diffchange diffchange-inline">4b7</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># Install Scicoslab 4.<ins class="diffchange diffchange-inline">4.1</ins></div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># Install the last ScicosLab Pack for FLEX boards</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># Install the last ScicosLab<ins class="diffchange diffchange-inline">-</ins>Pack for FLEX boards</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># Install Microsoft Visual Studio Express <del class="diffchange diffchange-inline">2008 </del>(free version is available!)</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># Install Microsoft Visual Studio Express <ins class="diffchange diffchange-inline">2010 </ins>(free version is available!)</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"># Install Erika Enterprise 1.5.1</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Block creation tutorial:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Block creation tutorial:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Preface: directory names are the directory names of my laptop... </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Preface: directory names are the directory names of my laptop... </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># In the folder of interest (e.g. C:\Programmi\scilab\<del class="diffchange diffchange-inline">scicoslab_44b7</del>\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># In the folder of interest (e.g. C:\Programmi\scilab\<ins class="diffchange diffchange-inline">scicoslab_441</ins>\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># If you want to put your new block in a '''new palette''', you need to create a new child folder of flex_blocks, put the block file (.sci file) into and edit '''builder.sce''' and '''loader.sce''' scripts to take this new folder in account.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># If you want to put your new block in a '''new palette''', you need to create a new child folder of flex_blocks, put the block file (.sci file) into and edit '''builder.sce''' and '''loader.sce''' scripts to take this new folder in account.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># To compile block code change the working directory from the scilab console in this way "cd c:/Programmi/scilab<del class="diffchange diffchange-inline">-4.1.2</del>/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># To compile block code change the working directory from the scilab console in this way "cd c:/Programmi/scilab<ins class="diffchange diffchange-inline">/scicoslab_441</ins>/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\<del class="diffchange diffchange-inline">scicoslab_44b7</del>\contrib\dspic\macros\palettes) replacing older file.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\<ins class="diffchange diffchange-inline">scicoslab_441</ins>\contrib\dspic\macros\palettes) replacing older file.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the .scilab configuration file in your $(HOME)/ScicosLab/{version}, to add the new palette to scicos' palettes sub-menu.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the .scilab configuration file in your $(HOME)/ScicosLab/{version}, to add the new palette to scicos' palettes sub-menu.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please check if you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please check if you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Create a DLL with the computational function of your block to be used for simulation, and link the DLL library in ScicosLab (type "help link" for further info). </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Create a scicos diagram and try to genereate the code.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Create a scicos diagram and try to genereate the code.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>Erikaddshttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=3186&oldid=prevEguidieri: /* Scicoslab 4.4b7 */2011-07-26T09:29:41Z<p><span class="autocomment">Scicoslab 4.4b7</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:29, 26 July 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Preface: directory names are the directory names of my laptop... </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Preface: directory names are the directory names of my laptop... </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># In the folder of interest (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># In the folder of interest (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># If you want to put your new block in a new palette, you need to create a new child folder of flex_blocks, put the block file (.sci file) into and edit builder.sce <del class="diffchange diffchange-inline">script </del>to take this new folder in account.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># If you want to put your new block in a <ins class="diffchange diffchange-inline">'''</ins>new palette<ins class="diffchange diffchange-inline">'''</ins>, you need to create a new child folder of flex_blocks, put the block file (.sci file) into and edit <ins class="diffchange diffchange-inline">'''</ins>builder.sce<ins class="diffchange diffchange-inline">''' and '''loader.sce''' scripts </ins>to take this new folder in account.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To compile block code change the working directory from the scilab console in this way "cd c:/Programmi/scilab-4.1.2/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To compile block code change the working directory from the scilab console in this way "cd c:/Programmi/scilab-4.1.2/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</div></td></tr>
</table>Eguidierihttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=3185&oldid=prevEguidieri: /* Scicoslab 4.4b7 */2011-07-26T09:09:51Z<p><span class="autocomment">Scicoslab 4.4b7</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:09, 26 July 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 12:</td>
<td colspan="2" class="diff-lineno">Line 12:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Block creation tutorial:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Block creation tutorial:</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"># </del>Preface: directory names are the directory names of my laptop...</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Preface: directory names are the directory names of my laptop... </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># In the folder of interest (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># In the folder of interest (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># To compile <del class="diffchange diffchange-inline">bblck </del>code change the working directory from the scilab console in this way "cd c:/Programmi/scilab-4.1.2/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"># If you want to put your new block in a new palette, you need to create a new child folder of flex_blocks, put the block file (.sci file) into and edit builder.sce script to take this new folder in account.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># To compile <ins class="diffchange diffchange-inline">block </ins>code change the working directory from the scilab console in this way "cd c:/Programmi/scilab-4.1.2/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\palettes) replacing older file. <del class="diffchange diffchange-inline"> </del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\palettes) replacing older file.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"># Modify the .scilab configuration file in your $(HOME)/ScicosLab/{version}, to add the new palette to scicos' palettes sub-menu.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please check if you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please check if you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Create a scicos diagram and try to genereate the code.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Create a scicos diagram and try to genereate the code.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>If your application works fine you have successfully completed this tutorial. Congratulations!!! ;-) </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>If your application works fine you have successfully completed this tutorial. Congratulations!!! ;-)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Scilab 4.1.2 =</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Scilab 4.1.2 =</div></td></tr>
</table>Eguidierihttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=2165&oldid=prevPaolo.gai at 17:36, 15 December 20102010-12-15T17:36:51Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 17:36, 15 December 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 18:</td>
<td colspan="2" class="diff-lineno">Line 18:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\palettes) replacing older file. </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\palettes) replacing older file. </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please <del class="diffchange diffchange-inline">note </del>you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please <ins class="diffchange diffchange-inline">check if </ins>you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Create a scicos diagram and try to genereate the code.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Create a scicos diagram and try to genereate the code.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>Paolo.gaihttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=2013&oldid=prevErikadds at 14:24, 25 June 20102010-06-25T14:24:56Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 14:24, 25 June 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 12:</td>
<td colspan="2" class="diff-lineno">Line 12:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Block creation tutorial:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Block creation tutorial:</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># Preface</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># Preface<ins class="diffchange diffchange-inline">: directory </ins>names are the directory names of my laptop...</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">## Directory </del>names are the directory names of my laptop...</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># In the folder of interest (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># In the folder of interest (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To compile bblck code change the working directory from the scilab console in this way "cd c:/Programmi/scilab-4.1.2/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To compile bblck code change the working directory from the scilab console in this way "cd c:/Programmi/scilab-4.1.2/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\palettes) replacing older file </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\palettes) replacing older file<ins class="diffchange diffchange-inline">. </ins> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please note you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please note you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</div></td></tr>
</table>Erikaddshttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=2012&oldid=prevErikadds at 14:22, 25 June 20102010-06-25T14:22:35Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 14:22, 25 June 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>These are a few notes useful if you want to create a new block in Scicos and the corresponding implementation function in ERIKA Enterprise.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>These are a few notes useful if you want to create a new block in Scicos and the corresponding implementation function in ERIKA Enterprise.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">This information derives from a post in the ERIKA Forum, and applies an old version of the Scilab toolbox (still to be tested on the latest one!)</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">= Scicoslab 4.4b7 =</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">This section describes how to create a new block for Erika Enterprise, and applies the Scicoslab 4.4b7 version of the toolbox.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Installation steps:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Install Scicoslab 4.4b7</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Install the last ScicosLab Pack for FLEX boards</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Install Microsoft Visual Studio Express 2008 (free version is available!)</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Install Erika Enterprise 1.5.1</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Block creation tutorial:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Preface</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">## Directory names are the directory names of my laptop...</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># In the folder of interest (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB) write the sci code of your block. Please note the name of your C function must be specified in the scicos_model.sim field.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># To compile bblck code change the working directory from the scilab console in this way "cd c:/Programmi/scilab-4.1.2/contrib/dspic" and then digit the following command "exec builder.sce". You obtain a .bin file.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># To create the new palette file digit the following command "create_palette(folder_path)" (e.g. create_palette("C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\flex_blocks\FLEX-MTB")). You obtain a .cosf file.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Move the .cosf file in the palettes folder (e.g. C:\Programmi\scilab\scicoslab_44b7\contrib\dspic\macros\palettes) replacing older file </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Modify the file named "symbols" inserting the name of your block and the symbols you want to be associated.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Write your C files and place them in the scicos folders inside Erika Enterprise tree. (e.g. C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\inc\pic30\mycode.h C:\Evidence\eclipse\plugins\com.eu.evidence.ee_1.5.1.201005181137\ee_base\contrib\scicos\src\pic30\mycode.c). Please note you must modify the contrib\scicos\cfg\cfg.mk to tell the compiler that your file must be compiled!</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Create a scicos diagram and try to genereate the code.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">If your application works fine you have successfully completed this tutorial. Congratulations!!! ;-) </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">= Scilab 4.1.2 =</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">This information derives from a post in the ERIKA Forum, and applies the Scilab 4.1.2 version of the toolbox.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Preface</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Preface</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## Directory names are the directory names of my laptop...</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## Directory names are the directory names of my laptop...</div></td></tr>
</table>Erikaddshttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=1574&oldid=prevPaolo.gai at 16:32, 2 April 20092009-04-02T16:32:52Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:32, 2 April 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 19:</td>
<td colspan="2" class="diff-lineno">Line 19:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## in C:/Programmi/scilab-4.1.2/contrib/dspic/bulder.sce , we have to comment a few lines, because we are not going to compile the .c files distributed with the package. in particular, comment from the line "cd(ROUTINES)" to the one but last line (leave only the "cd('..')"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## in C:/Programmi/scilab-4.1.2/contrib/dspic/bulder.sce , we have to comment a few lines, because we are not going to compile the .c files distributed with the package. in particular, comment from the line "cd(ROUTINES)" to the one but last line (leave only the "cd('..')"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Compile</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Compile</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>## open scilab 4.1.<del class="diffchange diffchange-inline">1</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>## open scilab 4.1.<ins class="diffchange diffchange-inline">2</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## from the scilab console, "cd c:/Programmi/scilab-4.1.2/contrib/dspic"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## from the scilab console, "cd c:/Programmi/scilab-4.1.2/contrib/dspic"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## from the scilab console, "exec builder.sce"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## from the scilab console, "exec builder.sce"</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># you get the following <del class="diffchange diffchange-inline">output</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># you get <ins class="diffchange diffchange-inline">an output similar to </ins>the following <ins class="diffchange diffchange-inline">one</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#:--------------------------------------------------------------------</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#:--------------------------------------------------------------------</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#:___________________________________________</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#:___________________________________________</div></td></tr>
</table>Paolo.gaihttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=1573&oldid=prevPaolo.gai at 16:31, 2 April 20092009-04-02T16:31:31Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:31, 2 April 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 10:</td>
<td colspan="2" class="diff-lineno">Line 10:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Install the Scicos Pack for the FLEX boards</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Install the Scicos Pack for the FLEX boards</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Install Microsoft Visual Studio Express 2008</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Install Microsoft Visual Studio Express 2008</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div># [www.evidence.eu.com/download/scicos/MSVC2008_Patch.zip Install these patches] in Scilab 4.1.2. They are needed to let Scilab discover the Visual studio compiler</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div># [<ins class="diffchange diffchange-inline">http://</ins>www.evidence.eu.com/download/scicos/MSVC2008_Patch.zip Install these patches] in Scilab 4.1.2. They are needed to let Scilab discover the Visual studio compiler</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># NMake</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># NMake</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## install NMake from http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## install NMake from http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084</div></td></tr>
</table>Paolo.gaihttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=1572&oldid=prevPaolo.gai at 16:31, 2 April 20092009-04-02T16:31:11Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:31, 2 April 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## Use the zip file attached. for each step, there are a few files to look at</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## Use the zip file attached. for each step, there are a few files to look at</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## I had to edit the post to substitute backslash with slashes</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## I had to edit the post to substitute backslash with slashes</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Install Scilab 4.1.2</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Install the Scicos Pack for the FLEX boards</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># Install Microsoft Visual Studio Express 2008</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"># [www.evidence.eu.com/download/scicos/MSVC2008_Patch.zip Install these patches] in Scilab 4.1.2. They are needed to let Scilab discover the Visual studio compiler</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># NMake</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># NMake</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## install NMake from http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## install NMake from http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 12:</td>
<td colspan="2" class="diff-lineno">Line 16:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Update the files</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Update the files</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## You need to create the block file. You can use Roberto's block editor http://web.dti.supsi.ch/~bucher/ . Or check out the block example at http://www.evidence.eu.com/component/option,com_fireboard/Itemid,262/func,view/id,6/catid,3/</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## You need to create the block file. You can use Roberto's block editor http://web.dti.supsi.ch/~bucher/ . Or check out the block example at http://www.evidence.eu.com/component/option,com_fireboard/Itemid,262/func,view/id,6/catid,3/</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>## add into the C:/Programmi/scilab-4.1.<del class="diffchange diffchange-inline">1</del>/contrib/dspic/macros/name one line with the file name</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>## add into the C:/Programmi/scilab-4.1.<ins class="diffchange diffchange-inline">2</ins>/contrib/dspic/macros/name one line with the file name</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>## in C:/Programmi/scilab-4.1.<del class="diffchange diffchange-inline">1</del>/contrib/dspic/bulder.sce , we have to comment a few lines, because we are not going to compile the .c files distributed with the package. in particular, comment from the line "cd(ROUTINES)" to the one but last line (leave only the "cd('..')"</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>## in C:/Programmi/scilab-4.1.<ins class="diffchange diffchange-inline">2</ins>/contrib/dspic/bulder.sce , we have to comment a few lines, because we are not going to compile the .c files distributed with the package. in particular, comment from the line "cd(ROUTINES)" to the one but last line (leave only the "cd('..')"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Compile</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Compile</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## open scilab 4.1.1</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## open scilab 4.1.1</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>## from the scilab console, "cd c:/Programmi/scilab-4.1.<del class="diffchange diffchange-inline">1</del>/contrib/dspic"</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>## from the scilab console, "cd c:/Programmi/scilab-4.1.<ins class="diffchange diffchange-inline">2</ins>/contrib/dspic"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## from the scilab console, "exec builder.sce"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>## from the scilab console, "exec builder.sce"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># you get the following output</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># you get the following output</div></td></tr>
</table>Paolo.gaihttps://erika.tuxfamily.org/wiki/index.php?title=How_to_add_a_new_Scicos_block_to_ERIKA_Enterprise&diff=1285&oldid=prevPaolo.gai: first revision2008-06-22T21:27:37Z<p>first revision</p>
<p><b>New page</b></p><div>These are a few notes useful if you want to create a new block in Scicos and the corresponding implementation function in ERIKA Enterprise.<br />
<br />
This information derives from a post in the ERIKA Forum, and applies an old version of the Scilab toolbox (still to be tested on the latest one!)<br />
<br />
# Preface<br />
## Directory names are the directory names of my laptop...<br />
## Use the zip file attached. for each step, there are a few files to look at<br />
## I had to edit the post to substitute backslash with slashes<br />
# NMake<br />
## install NMake from http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084<br />
## rename the executable file in nmake.exe and copy it into C:/Windows<br />
# Update the files<br />
## You need to create the block file. You can use Roberto's block editor http://web.dti.supsi.ch/~bucher/ . Or check out the block example at http://www.evidence.eu.com/component/option,com_fireboard/Itemid,262/func,view/id,6/catid,3/<br />
## add into the C:/Programmi/scilab-4.1.1/contrib/dspic/macros/name one line with the file name<br />
## in C:/Programmi/scilab-4.1.1/contrib/dspic/bulder.sce , we have to comment a few lines, because we are not going to compile the .c files distributed with the package. in particular, comment from the line "cd(ROUTINES)" to the one but last line (leave only the "cd('..')"<br />
# Compile<br />
## open scilab 4.1.1<br />
## from the scilab console, "cd c:/Programmi/scilab-4.1.1/contrib/dspic"<br />
## from the scilab console, "exec builder.sce"<br />
# you get the following output<br />
#:--------------------------------------------------------------------<br />
#:___________________________________________<br />
#:scilab-4.1.1<br />
#:<br />
#:Copyright (c) 1989-2007<br />
#:Consortium Scilab (INRIA, ENPC)<br />
#:___________________________________________<br />
#:<br />
#:<br />
#:Startup execution:<br />
#:loading initial environment<br />
#:shared archive loaded<br />
#:_link_ done<br />
#:<br />
#:Scicos-FLEX Ready<br />
#:<br />
#:-->cd c:/Programmi/scilab-4.1.1/contrib/dspic<br />
#:ans =<br />
#:<br />
#:c:/Programmi/scilab-4.1.1/contrib/dspic<br />
#:<br />
#:-->exec builder.sce<br />
#:<br />
#:-->mode(-1);<br />
#:<br />
#:--><br />
#:<br />
#:--------------------------------------------------------------------<br />
# Add the block to the scicos Palette<br />
## "cd macros"<br />
## open scicos by typing "scicos();"<br />
## Menu "Diagram/Load", load the file "dspic.cosf"<br />
## Menu "Edit/Add New block", specify the file name "dspic_getfreq", press ok and place the block inside the palette where you want<br />
## menu "Diagram/Save As", and give the name "dspic.cosf" - with the final "f"!!!<br />
## close Scicos and Scilab<br />
## now if you open again scicos, the dspic palette should have the dspic_getfreq block.<br />
# Configuring Erika Enterprise<br />
## copy the getfreq.c file inside "C:/Programmi/Evidence/ee/contrib/scicos/src/pic30"<br />
## add getfreq.c inside "C:/Programmi/Evidence/ee/contrib/scicos/cfg/cfg.mk" (see file attached for an example)<br />
# Create a scicos example<br />
## Follow the Scicos tutorial, but use the getfreq instead of the Sine (see files in the zip)<br />
## compile and enjoy!</div>Paolo.gai