blob: 10b0f7eb6add48e84aebfb45967b1d567acdfc4a (
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title>Build and run the model</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
<!-- html,3,next -->
<meta name="src" content="etrice-doc.tex">
<meta name="date" content="2013-02-26 19:42:00">
<link rel="stylesheet" type="text/css" href="etrice-doc.css">
</head><body
>
<!--l. 93--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse10.html" >next</a>] [<a
href="etrice-docse8.html" >prev</a>] [<a
href="etrice-docse8.html#tailetrice-docse8.html" >prev-tail</a>] [<a
href="#tailetrice-docse9.html">tail</a>] [<a
href="etrice-docch5.html#etrice-docse9.html" >up</a>] </p></div>
<h3 class="sectionHead"><span class="titlemark">5.4 </span> <a
id="x16-300005.4"></a>Build and run the model</h3>
<!--l. 95--><p class="noindent" >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="ecti-1000">HelloWorld/ </span>right click <span
class="ecbx-1000">gen_HelloWorld.launch </span>and
run it as gen_HelloWorld. All model files in the model directory will be
generated.
<!--l. 97--><p class="noindent" ><img
src="images/015-HelloWorld06.png" alt="PIC"
>
<!--l. 100--><p class="noindent" >The code will be generated to the src-gen directory. The main function will be
contained in <span
class="ecbx-1000">SubSystem_HelloWorldRunner.java</span>. Select this file and run it as
Java application.
<!--l. 102--><p class="noindent" ><img
src="images/015-HelloWorld07.png" alt="PIC"
>
<!--l. 106--><p class="noindent" >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="ecbx-1000">quit </span>in the console
window.
<!--l. 108--><p class="noindent" ><img
src="images/015-HelloWorld08.png" alt="PIC"
>
<!--l. 111--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse10.html" >next</a>] [<a
href="etrice-docse8.html" >prev</a>] [<a
href="etrice-docse8.html#tailetrice-docse8.html" >prev-tail</a>] [<a
href="etrice-docse9.html" >front</a>] [<a
href="etrice-docch5.html#etrice-docse9.html" >up</a>] </p></div>
<!--l. 111--><p class="noindent" ><a
id="tailetrice-docse9.html"></a>
</body></html>
|