Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: fa5ca6e238ed86281aadf39983e4c34d701956a0 (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
<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="TutorialSendingDataJava.html" title="Tutorial Sending Data (Java)">
<link rel="prev" href="TutorialSendingDataJava.html" title="Tutorial Sending Data (Java)">
<link rel="next" href="Addadataclass.html" title="Add a data class">
</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="Createanewmodelfromscratch3"></a>Create a new model from scratch</h2>
</div>
</div>
</div>
<p>Remember exercise 
				<span class="emphasis"><em>HelloWorld</em></span>.
				Create a new eTrice project and name it 
				<span class="emphasis"><em>SendingData</em></span>
				Open the 
				<span class="emphasis"><em>SendingData.room</em></span> file and copy the following code into the file or use content assist to create the model.
			</p>
<div class="literallayout">
<p>
<code class="code">RoomModel&nbsp;SendingData&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;LogicalSystem&nbsp;SendingData_LogSystem&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SubSystemRef&nbsp;SendingDataAppl:SendingData_SubSystem&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;}<br>
&nbsp;&nbsp;&nbsp;&nbsp;SubSystemClass&nbsp;SendingData_SubSystem&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ActorRef&nbsp;SendigDataTopRef:SendingDataTop&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;}<br>
&nbsp;&nbsp;&nbsp;&nbsp;ActorClass&nbsp;SendingDataTop&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;}<br>
}<br>

</code>
</p>
</div>
<div class="blockquote">
<blockquote class="blockquote">
<p></p>
</blockquote>
</div>
</div>
</body>
</html>

Back to the top