Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3d65d1e8d4fe578f71c5632832325e14af0acc70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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="TutorialHelloWorld.html" title="Tutorial HelloWorld">
<link rel="prev" href="Createastatemachine.html" title="Create a state machine">
<link rel="next" href="OpentheMessageSequenceChart.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="Buildandrunthemodel"></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 workflow that is responsible to generate the source code. From 
				[<span class="citation">HelloWorld/src/workflow</span>] right click 
				[<span class="citation">HelloWorld.mwe2</span>] and run it as MWE2Workflow. 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="citation">SubSystem_HelloWorldRunner.java</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="citation">quit</span>] in the console window.
			</p>
<p>
				
</p>
<div class="mediaobject">
<img src="images/015-HelloWorld08.PNG"></div>
<p>
			
</p>
</div>
</body>
</html>

Back to the top