Differences between revisions 11 and 13 (spanning 2 versions)
Revision 11 as of 2010-06-11 10:31:01
Size: 476
Comment:
Revision 13 as of 2010-06-21 23:08:46
Size: 1763
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
=== Compatibility Pattern Structure ===

{{{
<!-- Integrator Block Compatibility Pattern -->
<block sim="Integrator" xcos="INTEGRAL_m" description="">
}}}
First goes simulink name of block, then xcos, after that you can put description, that will be shown in [TRACE]

{{{
<str2int sim="ZeroCross" xcos="nzcross" description="Enable zero-crossing detection">
 <map simVal="off" xcosVal="0"/>
 <map simVal="on" xcosVal="1"/>
</str2int>
<str2int sim="ExternalReset" xcos="With re-initialization" description="">
 <!-- TODO: {'none'} | 'rising' | 'falling' | 'either' | 'level' | 'level hold' -->
 <mapp simVal="none" xcosVal="0"/>
</str2int>
<str2int sim="LimitOutput" xcos="rpar" description="">
 <map simVal="off" xcosVal="0"/>
 <map simVal="on" xcosVal="1"/>
</str2int>
}}}
Every parameter that in Simulink has String value and in Xcos is Integer

{{{
<real xcos="rpar">
 <map simName="UpperStaturationLimit" index="0"/>
 <map simName="LowerSaturationLimit" index="1"/>
</real>

<real xcos="state">
 <map simName="InitialCondition" index="0"/>
</real>
</block>
}}}
All parameters (rpar, state, ipar, dstate) that have real/integer/etc values

odstate and opar isn't yet available
Line 15: Line 54:
 1. [:Contributor_-_Simulink_Import/20_june_2010: 20 June 2010]

Include(GSoC/MenuBar)

Simulink import

Main idea of this project is to create easy method of migrating Simulink diagrams to Xcos, with minimal user involvement.

Project description

See attached SEP: attachment:SEP_Simulink_Import.odt

Compatibility Pattern Structure

<!--    Integrator Block Compatibility Pattern -->
<block sim="Integrator" xcos="INTEGRAL_m" description="">

First goes simulink name of block, then xcos, after that you can put description, that will be shown in [TRACE]

<str2int sim="ZeroCross" xcos="nzcross" description="Enable zero-crossing detection">
        <map simVal="off" xcosVal="0"/>
        <map simVal="on" xcosVal="1"/>
</str2int>
<str2int sim="ExternalReset" xcos="With re-initialization" description="">
        <!-- TODO: {'none'} | 'rising' | 'falling' | 'either' | 'level' | 'level hold' -->
        <mapp simVal="none" xcosVal="0"/>
</str2int>
<str2int sim="LimitOutput" xcos="rpar" description="">
        <map simVal="off" xcosVal="0"/>
        <map simVal="on" xcosVal="1"/>
</str2int>

Every parameter that in Simulink has String value and in Xcos is Integer

<real xcos="rpar">
        <map simName="UpperStaturationLimit" index="0"/>
        <map simName="LowerSaturationLimit" index="1"/>
</real>

<real xcos="state">
        <map simName="InitialCondition" index="0"/>
</real>
</block>

All parameters (rpar, state, ipar, dstate) that have real/integer/etc values

odstate and opar isn't yet available

Weekly reports

  1. [:Contributor_-_Simulink_Import/28_may_2010: 28 May 2010]
  2. [:Contributor_-_Simulink_Import/04_june_2010: 4 June 2010]
  3. [:Contributor_-_Simulink_Import/11_june_2010: 11 June 2010]
  4. [:Contributor_-_Simulink_Import/20_june_2010: 20 June 2010]

public: Contributor - Simulink Import (last edited 2018-12-16 21:12:56 by yann.debray@scilab-enterprises.com)