Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjung2012-09-08 19:08:53 +0000
committertjung2012-09-08 19:08:53 +0000
commit6806015527f139a2d053bfcc0a093b149dd9570c (patch)
tree6a50b5227552e429fb87ee5277210a8397008d68
parent26a574d7b5cb4e75471b38780ab4cf5c510574e0 (diff)
downloadorg.eclipse.etrice-6806015527f139a2d053bfcc0a093b149dd9570c.tar.gz
org.eclipse.etrice-6806015527f139a2d053bfcc0a093b149dd9570c.tar.xz
org.eclipse.etrice-6806015527f139a2d053bfcc0a093b149dd9570c.zip
[tutorials] Hello World added
-rw-r--r--plugins/org.eclipse.etrice.doc/help/Buildandrunthemodel2.html59
-rw-r--r--plugins/org.eclipse.etrice.doc/help/CreatealaunchconfigurationtostarttheCcodegenerator.html25
-rw-r--r--plugins/org.eclipse.etrice.doc/help/Createanewmodelfromscratch4.html95
-rw-r--r--plugins/org.eclipse.etrice.doc/help/CreatetheHelloWorldmodel.html63
-rw-r--r--plugins/org.eclipse.etrice.doc/help/Generatethecode.html25
-rw-r--r--plugins/org.eclipse.etrice.doc/help/OpentheMessageSequenceChart2.html34
-rw-r--r--plugins/org.eclipse.etrice.doc/help/Runthemodel.html25
-rw-r--r--plugins/org.eclipse.etrice.doc/help/Setuptheincludepath.html25
-rw-r--r--plugins/org.eclipse.etrice.doc/help/Summary4.html70
-rw-r--r--plugins/org.eclipse.etrice.doc/help/Summary5.html27
-rw-r--r--plugins/org.eclipse.etrice.doc/help/TutorialHelloWorldC.html96
-rw-r--r--plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC01.pngbin0 -> 36191 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC02.pngbin0 -> 138276 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC03.pngbin0 -> 94802 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC04.pngbin0 -> 39780 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC05.pngbin0 -> 7073 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC01.pngbin0 -> 36191 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC02.pngbin0 -> 138276 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC03.pngbin0 -> 94802 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC04.pngbin0 -> 39780 bytes
-rw-r--r--plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC05.pngbin0 -> 7073 bytes
21 files changed, 544 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.doc/help/Buildandrunthemodel2.html b/plugins/org.eclipse.etrice.doc/help/Buildandrunthemodel2.html
new file mode 100644
index 000000000..883fcb934
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/Buildandrunthemodel2.html
@@ -0,0 +1,59 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Build and run the model</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="Summary4.html" title="Summary">
+<link rel="next" href="OpentheMessageSequenceChart2.html" title="Open the Message Sequence Chart">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Build and run the model</h1>
+<div class="section" title="Build and run the model">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Buildandrunthemodel2"></a>Build and run the model</h2>
+</div>
+</div>
+</div>
+<p>Now the model is finished and source code can be generated. The project wizard has created a launch configuration that is responsible for generating the source code. From
+ <span class="emphasis"><em>HelloWorld/</em></span> right click
+ <span class="bold"><strong>gen_HelloWorld.launch</strong></span> and run it as gen_HelloWorld. All model files in the model directory will be generated.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld06.png"></div>
+<p>
+
+</p>
+<p>The code will be generated to the src-gen directory. The main function will be contained in
+ <span class="bold"><strong>SubSystem_HelloWorldRunner.java</strong></span>. Select this file and run it as Java application.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld07.png"></div>
+<p>
+
+</p>
+<p>The Hello World application starts and the string will be printed on the console window. To stop the application the user must type
+ <span class="emphasis"><em>quit</em></span> in the console window.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld08.png"></div>
+<p>
+
+</p>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/CreatealaunchconfigurationtostarttheCcodegenerator.html b/plugins/org.eclipse.etrice.doc/help/CreatealaunchconfigurationtostarttheCcodegenerator.html
new file mode 100644
index 000000000..c76ab5ace
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/CreatealaunchconfigurationtostarttheCcodegenerator.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Create a launch configuration to start the C codegenerator</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="CreatetheHelloWorldmodel.html" title="Create the HelloWorld model">
+<link rel="next" href="Generatethecode.html" title="Generate the code">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Create a launch configuration to start the C codegenerator</h1>
+<div class="section" title="Create a launch configuration to start the C codegenerator">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="CreatealaunchconfigurationtostarttheCcodegenerator"></a>Create a launch configuration to start the C codegenerator</h2>
+</div>
+</div>
+</div>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/Createanewmodelfromscratch4.html b/plugins/org.eclipse.etrice.doc/help/Createanewmodelfromscratch4.html
new file mode 100644
index 000000000..1ef424634
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/Createanewmodelfromscratch4.html
@@ -0,0 +1,95 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Create a new model from scratch</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="next" href="CreatetheHelloWorldmodel.html" title="Create the HelloWorld model">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Create a new model from scratch</h1>
+<div class="section" title="Create a new model from scratch">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Createanewmodelfromscratch4"></a>Create a new model from scratch</h2>
+</div>
+</div>
+</div>
+<p>Before you can create a new C-model, you have to create a new C project as described in
+ <span class="emphasis"><em>Setting up the workspace ( C )</em></span>.
+ Remember:
+ - select the
+ <span class="emphasis"><em>C/C++</em></span> perspective
+ - From the main menue select
+ <span class="emphasis"><em>File-&gt;New-&gt;C Project</em></span>
+ - Name the project
+ <span class="emphasis"><em>HelloWorldC</em></span>
+ - Project type is
+ <span class="emphasis"><em>Executable / Empty C Project</em></span>
+ - Toolchain is
+ <span class="emphasis"><em>MinGW</em></span>
+
+</p>
+<p>The workspace should look like this:</p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/034-HelloWorldC01.png"></div>
+<p>
+
+</p>
+<p>The next step is to add the model folder:
+ Right click on the new project. Select
+ <span class="emphasis"><em>New-&gt;Folder</em></span> and name it
+ <span class="emphasis"><em>model</em></span>.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/034-HelloWorldC02.png"></div>
+<p>
+
+</p>
+<p>Add the model file to the folder. Right click on the new folder. Select
+ <span class="emphasis"><em>New-&gt;file</em></span> and name it
+ <span class="emphasis"><em>HelloWorldC.room</em></span>.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/034-HelloWorldC03.png"></div>
+<p>
+
+</p>
+<p>Due to the file ending
+ <span class="emphasis"><em>.room</em></span> the tool will ask you to add the Xtext nature. Answer with
+ <span class="emphasis"><em>Yes</em></span>.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/034-HelloWorldC04.png"></div>
+<p>
+
+</p>
+<p>The workspace should look like this:</p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/034-HelloWorldC05.png"></div>
+<p>
+
+</p>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/CreatetheHelloWorldmodel.html b/plugins/org.eclipse.etrice.doc/help/CreatetheHelloWorldmodel.html
new file mode 100644
index 000000000..7abbdb618
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/CreatetheHelloWorldmodel.html
@@ -0,0 +1,63 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Create the HelloWorld model</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="Createanewmodelfromscratch4.html" title="Create a new model from scratch">
+<link rel="next" href="CreatealaunchconfigurationtostarttheCcodegenerator.html" title="Create a launch configuration to start the C codegenerator">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Create the HelloWorld model</h1>
+<div class="section" title="Create the HelloWorld model">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="CreatetheHelloWorldmodel"></a>Create the HelloWorld model</h2>
+</div>
+</div>
+</div>
+<p>Once the model file is created and the Xtext nature is added, you can create the model as you did it for Java.
+ Creating the model is not the focus of this tutorial. Therefore copy and paste the following code into your model file. Optionally you can open and layout the diagrams.
+ Recognize the C specific parts:
+ - Import CTypes instead of JavaTypes
+ - The action code contains C instead of Java. Later versions will contain a common action language, but for the moment the action language is target specific.</p>
+<p>ToDo: shutdown must be not depend on the subsystem.</p>
+<div class="literallayout">
+<p>
+<code class="code">RoomModel&nbsp;HelloWorldCModel&nbsp;{<br>
+ import&nbsp;room.basic.types.c.*&nbsp;from&nbsp;"../../org.eclipse.etrice.modellib.c/model/CTypes.room"<br>
+ SubSystemClass&nbsp;HelloWorldCSubSysClass&nbsp;{<br>
+ ActorRef&nbsp;HelloETriceTopRef:AHelloWorldCTop&nbsp;<br>
+ }<br>
+ ActorClass&nbsp;AHelloWorldCTop&nbsp;{<br>
+ Structure&nbsp;{&nbsp;}<br>
+ Behavior&nbsp;{<br>
+ StateMachine&nbsp;{<br>
+ Transition&nbsp;init:&nbsp;initial&nbsp;-&gt;&nbsp;state0&nbsp;{&nbsp;}<br>
+ State&nbsp;state0&nbsp;{<br>
+ entry&nbsp;{<br>
+ "printf(\"HelloETrice&nbsp;!\\n\");"<br>
+ "HelloETriceSubSysClass_shutdown();//exit(0);"<br>
+ "\t\t\t\t\t\t"<br>
+ }<br>
+ }<br>
+ }<br>
+ }<br>
+ } <br>
+}<br>
+
+</code>
+</p>
+</div>
+<div class="blockquote">
+<blockquote class="blockquote">
+<p></p>
+</blockquote>
+</div>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/Generatethecode.html b/plugins/org.eclipse.etrice.doc/help/Generatethecode.html
new file mode 100644
index 000000000..4fd4950b3
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/Generatethecode.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Generate the code</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="CreatealaunchconfigurationtostarttheCcodegenerator.html" title="Create a launch configuration to start the C codegenerator">
+<link rel="next" href="Setuptheincludepath.html" title="Setup the include path">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Generate the code</h1>
+<div class="section" title="Generate the code">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Generatethecode"></a>Generate the code</h2>
+</div>
+</div>
+</div>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/OpentheMessageSequenceChart2.html b/plugins/org.eclipse.etrice.doc/help/OpentheMessageSequenceChart2.html
new file mode 100644
index 000000000..c87e8150d
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/OpentheMessageSequenceChart2.html
@@ -0,0 +1,34 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Open the Message Sequence Chart</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="Buildandrunthemodel2.html" title="Build and run the model">
+<link rel="next" href="Summary5.html" title="Summary">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Open the Message Sequence Chart</h1>
+<div class="section" title="Open the Message Sequence Chart">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="OpentheMessageSequenceChart2"></a>Open the Message Sequence Chart</h2>
+</div>
+</div>
+</div>
+<p>During runtime the application produced a MSC and wrote it to a file. Open HelloWorld/tmp/log/SubSystem_HelloWorld_Async.seq using Trace2UML (it is open source and can be obtained from http://trace2uml.tigris.org/). You should see something like this:</p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld09.png"></div>
+<p>
+
+</p>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/Runthemodel.html b/plugins/org.eclipse.etrice.doc/help/Runthemodel.html
new file mode 100644
index 000000000..cf0d3c500
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/Runthemodel.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Run the model</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="Setuptheincludepath.html" title="Setup the include path">
+<link rel="next" href="Summary4.html" title="Summary">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Run the model</h1>
+<div class="section" title="Run the model">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Runthemodel"></a>Run the model</h2>
+</div>
+</div>
+</div>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/Setuptheincludepath.html b/plugins/org.eclipse.etrice.doc/help/Setuptheincludepath.html
new file mode 100644
index 000000000..5db9886bd
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/Setuptheincludepath.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Setup the include path</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="Generatethecode.html" title="Generate the code">
+<link rel="next" href="Runthemodel.html" title="Run the model">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Setup the include path</h1>
+<div class="section" title="Setup the include path">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Setuptheincludepath"></a>Setup the include path</h2>
+</div>
+</div>
+</div>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/Summary4.html b/plugins/org.eclipse.etrice.doc/help/Summary4.html
new file mode 100644
index 000000000..122180f6d
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/Summary4.html
@@ -0,0 +1,70 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Summary</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="Runthemodel.html" title="Run the model">
+<link rel="next" href="Buildandrunthemodel2.html" title="Build and run the model">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Summary</h1>
+<div class="section" title="Summary">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Summary4"></a>Summary</h2>
+</div>
+</div>
+</div>
+<p>We will implement the Hello World code on the initial transition of the
+ <span class="emphasis"><em>HelloWorldTop</em></span> actor. Therefore open the state machine editor by right clicking the
+ <span class="emphasis"><em>HelloWorldTop</em></span> actor in the outline view and select
+ <span class="emphasis"><em>Edit Behavior</em></span>.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld03.png"></div>
+<p>
+
+</p>
+<p>The state machine editor will be opened. Drag and drop an
+ <span class="emphasis"><em>Initial Point</em></span> from the tool box to the diagram into the top level state. Drag and drop a
+ <span class="emphasis"><em>State</em></span> from the tool box to the diagram. Confirm the dialogue with
+ <span class="emphasis"><em>ok</em></span>. Select the
+ <span class="emphasis"><em>Transition</em></span> in the tool box and draw the transition from the
+ <span class="emphasis"><em>Initial Point</em></span> to the State. Open the transition dialogue by double clicking the transition arrow and fill in the action code.
+ </p>
+<div class="literallayout">
+<p>
+<code class="code">System.out.println("Hello&nbsp;World&nbsp;!");<br>
+
+</code>
+</p>
+</div>
+<p>The result should look like this:</p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld04.png"></div>
+<p>
+
+</p>
+<p>Save the diagram and inspect the model file. Note that the textual representation was created after saving the diagram.</p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld05.png"></div>
+<p>
+
+</p>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/Summary5.html b/plugins/org.eclipse.etrice.doc/help/Summary5.html
new file mode 100644
index 000000000..01b1f7df8
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/Summary5.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Summary</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="OpentheMessageSequenceChart2.html" title="Open the Message Sequence Chart">
+<link rel="next" href="ROOMConcepts.html" title="ROOM Concepts">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Summary</h1>
+<div class="section" title="Summary">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Summary5"></a>Summary</h2>
+</div>
+</div>
+</div>
+<p>Now you have generated your first eTrice model from scratch. You can switch between diagram editor and model (.room file) and you can see what will be generated during editing and saving the diagram files.
+ You should take a look at the generated source files to understand how the state machine is generated and the life cycle of the application. The next tutorials will deal with more complex hierarchies in structure and behavior.</p>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/TutorialHelloWorldC.html b/plugins/org.eclipse.etrice.doc/help/TutorialHelloWorldC.html
new file mode 100644
index 000000000..b1fbad928
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/TutorialHelloWorldC.html
@@ -0,0 +1,96 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Tutorial HelloWorld ( C )</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="index.html" title="eTrice User Guide">
+<link rel="prev" href="SettinguptheWorkspaceC.html" title="Setting up the Workspace ( C )">
+<link rel="next" href="Createanewmodelfromscratch4.html" title="Create a new model from scratch">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Tutorial HelloWorld ( C )</h1>
+<div class="chapter" title="Tutorial HelloWorld ( C )">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title">
+<a name="TutorialHelloWorldC"></a>Tutorial HelloWorld ( C )</h2>
+</div>
+</div>
+</div>
+<div class="toc">
+<dl>
+<dt>
+<span class="section"><a href="TutorialHelloWorldC.html#Scope5">Scope</a></span>
+</dt>
+<dt>
+<span class="section"><a href="Createanewmodelfromscratch4.html">Create a new model from scratch</a></span>
+</dt>
+<dt>
+<span class="section"><a href="CreatetheHelloWorldmodel.html">Create the HelloWorld model</a></span>
+</dt>
+<dt>
+<span class="section"><a href="CreatealaunchconfigurationtostarttheCcodegenerator.html">Create a launch configuration to start the C codegenerator</a></span>
+</dt>
+<dt>
+<span class="section"><a href="Generatethecode.html">Generate the code</a></span>
+</dt>
+<dt>
+<span class="section"><a href="Setuptheincludepath.html">Setup the include path</a></span>
+</dt>
+<dt>
+<span class="section"><a href="Runthemodel.html">Run the model</a></span>
+</dt>
+<dt>
+<span class="section"><a href="Summary4.html">Summary</a></span>
+</dt>
+<dt>
+<span class="section"><a href="Buildandrunthemodel2.html">Build and run the model</a></span>
+</dt>
+<dt>
+<span class="section"><a href="OpentheMessageSequenceChart2.html">Open the Message Sequence Chart</a></span>
+</dt>
+<dt>
+<span class="section"><a href="Summary5.html">Summary</a></span>
+</dt>
+</dl>
+</div>
+<div class="section" title="Scope">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Scope5"></a>Scope</h2>
+</div>
+</div>
+</div>
+<p>In this tutorial you will learn how to create a model for C from scratch. There are some more steps to do in C as in Java. The goal is to get familiar with the additional steps. The Java tutorial is a prerequisite for the following explanations.
+ You will perform the following steps:</p>
+<div class="orderedlist">
+<ol class="orderedlist" type="1">
+<li class="listitem">
+<p>create a new model from scratch for C</p>
+</li>
+<li class="listitem">
+<p>create structure and behavior similar to Java</p>
+</li>
+<li class="listitem">
+<p>create a launch configuration for the C code generator</p>
+</li>
+<li class="listitem">
+<p>generate the source code</p>
+</li>
+<li class="listitem">
+<p>run the model</p>
+</li>
+</ol>
+</div>
+<p>Make sure that you have set up the workspace as described in
+ <span class="emphasis"><em>Setting up the workspace ( C )</em></span>.
+ </p>
+</div>
+</div>
+</body>
+</html>
diff --git a/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC01.png b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC01.png
new file mode 100644
index 000000000..a8f303b32
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC01.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC02.png b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC02.png
new file mode 100644
index 000000000..25b59ee86
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC02.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC03.png b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC03.png
new file mode 100644
index 000000000..289212535
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC03.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC04.png b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC04.png
new file mode 100644
index 000000000..8458eca90
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC04.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC05.png b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC05.png
new file mode 100644
index 000000000..8bab9bc48
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/images/034-HelloWorldC05.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC01.png b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC01.png
new file mode 100644
index 000000000..a8f303b32
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC01.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC02.png b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC02.png
new file mode 100644
index 000000000..25b59ee86
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC02.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC03.png b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC03.png
new file mode 100644
index 000000000..289212535
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC03.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC04.png b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC04.png
new file mode 100644
index 000000000..8458eca90
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC04.png
Binary files differ
diff --git a/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC05.png b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC05.png
new file mode 100644
index 000000000..8bab9bc48
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/html/images/034-HelloWorldC05.png
Binary files differ

Back to the top