Differences between revisions 1 and 39 (spanning 38 versions)
Revision 1 as of 2010-05-28 11:19:48
Size: 202
Comment:
Revision 39 as of 2018-12-16 20:20:13
Size: 4531
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[Include(GSoC/MenuBar)]]
= Simulink Import =
<<Include(GSoC/MenuBar)>>
= Simulink import =
Line 5: Line 5:
<<TableOfContents>>
Line 6: Line 7:
<<Anchor(projectdescription)>>
Line 7: Line 9:

See attached SEP: [[attachment:SEP_Simulink_Import.odt]]

== State of the art and recent projects related ==

OpenCPS european research projet ITEA3: Deliverable D5.8 Simulink To Modelica Importer M24
[[https://itea3.org/project/workpackage/document/download/4252/D5.8%20Simulink%20To%20Modelica%20Importer%20M24|Simulink To Modelica Importer]]

[[http://cmla.ens-paris-saclay.fr/servlet/com.univ.collaboratif.utils.LectureFichiergw?CODE_FICHIER=1446553471964&ID_FICHE=161174|Presentation of Simport]]

[[http://forge.scilab.org/index.php/p/simulink2xcos/|Forge project]]


== GSOC 2010 project details ==

=== 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="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>
}}}
All parameters (rpar, state, ipar, dstate) that have real/integer/etc values <<BR>>
/!\ integer will have it's own type <<BR>>
/!\ odstate and opar isn't yet available <<BR>>

{{{
</block>
}}}
<<Anchor(roadmap)>>
== Roadmap ==
||<#D7FAF6>'''Task'''||<#D7FAF6>'''More info'''||<#D7FAF6>'''Priority'''||<#D7FAF6>'''Status'''||
||<-4 #D7FAF6 :99%>'''Main tasks''' ||
||Integrate external libraries ||[[http://cgit.scilab.org/scilab/commit/?h=simulinkimport&id=a759e7645334eb107603c940ba2b676360ff45f1|commit]] ||1 ||<#73FF4D> done ||
||Parser handling ||[[http://cgit.scilab.org/scilab/commit/?id=de3685819a0d816b5b2c4c19776b4ddc29dcf0eb|commit]] ||1 ||<#73FF4D> done ||
||Expanded parser handling ||add handling for simulation parameters to [[http://conqat.cs.tum.edu/index.php/Simulink_Library|CCSM]] ||3 ||<#FF4D4D> to do ||
||Create migration pattern schema || ||1 ||<#73FF4D> done ||
||Create migration patterns for explicit blocks || ||1 ||<#FFB24D> in progress ||
||Binding compatibility patterns via JAXB ||[[http://cgit.scilab.org/scilab/commit/?h=simulinkimport&id=10cb0fe2357d35e11d5308b4ed808a1c3cc25110|commit]] ||1 ||<#73FF4D> done ||
||<-4 #D7FAF6 :99%>'''Diagram creation''' ||
||Element placement || ||1 ||<#73FF4D> done ||
||Blocks ||[[http://cgit.scilab.org/scilab/commit/?h=simulinkimport&id=9ca8968ddf8519622cebffd33282e9f11ecc5978|commit]] ||1 ||<#FFB24D> in progres ||
||SuperBlocks || ||1 ||<#73FF4D> done ||
||Links || ||1 ||<#73FF4D> done ||
||Ports || ||1 ||<#FFB24D> in progress ||
||Annotations || ||2 ||<#FFB24D> in progress ||
||<-4 #D7FAF6 :99%>'''Testing and validation''' ||
||Trace || ||1 ||<#73FF4D> done ||
||Unitary tests || ||2 ||<#FFB24D> in progress ||
||User documentation || ||2 ||<#FFB24D> in progress ||

<<Anchor(weeklyreports)>>
== Weekly reports ==

 1. [[Contributor - Simulink Import/28 may 2010| 28 May 2010]]
 1. [[Contributor - Simulink Import/04 june 2010| 4 June 2010]]
 1. [[Contributor - Simulink Import/11 june 2010| 11 June 2010]]
 1. [[Contributor - Simulink Import/20 june 2010| 20 June 2010]]
 1. [[Contributor - Simulink Import/27 june 2010| 27 June 2010]]
 1. [[Contributor - Simulink Import/05 july 2010| 05 July 2010]]
 1. [[Contributor - Simulink Import/11 july 2010| 11 July 2010]]
 1. [[Contributor - Simulink Import/25 july 2010| 25 July 2010]]
 1. [[Contributor - Simulink Import/30 july 2010| 30 July 2010]]
 1. [[Contributor - Simulink Import/9 aug 2010| 9 Aug 2010]]
 1. [[Contributor - Simulink Import/14 aug 2010| 14 Aug 2010]]

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: SEP_Simulink_Import.odt

OpenCPS european research projet ITEA3: Deliverable D5.8 Simulink To Modelica Importer M24 Simulink To Modelica Importer

Presentation of Simport

Forge project

GSOC 2010 project details

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="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>

All parameters (rpar, state, ipar, dstate) that have real/integer/etc values
/!\ integer will have it's own type
/!\ odstate and opar isn't yet available

</block>

Roadmap

Task

More info

Priority

Status

Main tasks

Integrate external libraries

commit

1

done

Parser handling

commit

1

done

Expanded parser handling

add handling for simulation parameters to CCSM

3

to do

Create migration pattern schema

1

done

Create migration patterns for explicit blocks

1

in progress

Binding compatibility patterns via JAXB

commit

1

done

Diagram creation

Element placement

1

done

Blocks

commit

1

in progres

SuperBlocks

1

done

Links

1

done

Ports

1

in progress

Annotations

2

in progress

Testing and validation

Trace

1

done

Unitary tests

2

in progress

User documentation

2

in progress

Weekly reports

  1. 28 May 2010

  2. 4 June 2010

  3. 11 June 2010

  4. 20 June 2010

  5. 27 June 2010

  6. 05 July 2010

  7. 11 July 2010

  8. 25 July 2010

  9. 30 July 2010

  10. 9 Aug 2010

  11. 14 Aug 2010

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