没有合适的资源?快使用搜索试试~ 我知道了~
首页UML建模实时开发工具RTDS 教程
资源详情
资源评论
资源推荐
Real Time Developer Studio
Tutorial
Tutorial
Page 2 Real Time Developer Studio V4.3
Introduction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3
A simple system - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5
SDL Tutorial - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6
Organization ............................................................................................................. 6
Requirements ............................................................................................................. 7
Design .................................................................................................................... 11
Simulating the system ............................................................................................... 24
Simulation options 24
Byte-code generation 24
The SDL simulator 27
Verifying the behavior 35
Prototyping GUI ....................................................................................................... 37
GUI editor 37
Simulation 42
Testing .................................................................................................................... 44
Test case 45
Simulation against the SDL system 48
Code generation ...................................................................................................... 49
Code generation options 49
Graphical debugging 52
Conclusion .............................................................................................................. 57
SDL-RT Tutorial - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 58
Organization ........................................................................................................... 58
Requirements ........................................................................................................... 59
Design .................................................................................................................... 63
Running the system ................................................................................................... 81
Generation profile 82
Compilation errors 84
The SDL-RT debugger 88
Verifying the behavior 97
Prototyping GUI ..................................................................................................... 100
GUI editor 100
Simulation 104
Conclusion ............................................................................................................ 105
Automatic documentation generation- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 107
Publications ........................................................................................................... 108
Documentation ...................................................................................................... 113
Automatic generation ............................................................................................. 117
Tutorial
Real Time Developer Studio V4.3 Page 3
1 - Introduction
Before starting this tutorial, it is important to understand the basic concepts used in Real
Time Developer Studio.These concepts derive from the two languages supported by
RTDS, SDL and SDL-RT:
•SDL stands for Specification and Description Language. SDL is a graphi-
cal, object-oriented, formal language defined by the International Telecommuni-
cation Union - Telecommunication Standardization Sector (ITU-T) as
recommendation Z100. The language is intended for the specification of com-
plex, event-driven, real-time and interactive applications involving many con-
current activities that communicate using discrete signals.
•SDL-RT stands for Specification and Description Language - Real Time.
It is a mix of SDL with another graphical language, UML, and of a textual lan-
guage, C. It retains the graphical abstraction brought by SDL while keeping the
precision of traditional techniques in real-time and embedded software develop-
ment and making simpler the re-use of legacy code by using natively the C lan-
guage. The object-orientation is also pushed a step further by using the UML
diagrams.
The underlying concepts of both languages are the same: the overall application to
develop is called the system. Anything that is outside the system is called the environ-
ment. The system itself is described via four complementary and consistent views:
•Architecture
A system can be decomposed in functional blocks. A block can be further
decomposed in sub-blocks and so on until the functionality of the final blocks are
simple enough. A block then fulfils its functionality with one or more proc-
esses, communicating with each other via messages (also called signals). A
process is basically a task and has an implicit message queue to receive messages
from other tasks. There is no need to define it. A block has no direct implementa-
tion in the final application; it is a matter of organizing and structuring the appli-
cation. Blocks and process are called agents.
• Communication
Agents exchange messages through channels. Messages going through chan-
nels are listed to define the interface between the agents. When it comes to final
process
block
block
system
process
process
msg msg
state
state state
Tutorial
Page 4 Real Time Developer Studio V4.3
code on the target, channels have no direct implementation; they are only used
for structuring the software and defining the interfaces.
•Behavior
A process behavior is described graphically as a finite state machine. Internal
process states, events (messages), decisions, timer manipulations, semaphore
manipulations have specific symbols briefly summarized below necessary to
understand the following tutorial:
SDL or SDL-RT procedures can be called within the process behavior descrip-
tion. In SDL-RT, C functions can be called as well; SDL also allows the call of C
function via external operators.
• Data and syntax
This is where SDL and SDL-RT differ the most:
• In SDL, data is defined via ADT (Abstract Data Types), using specific con-
cepts and notations. The data manipulation has also a specific syntax, derived
from languages such as Pascal.
• In SDL-RT, the C language is used to define and manipulate data, making
things more familiar to developers…
Another SDL-RT specificity is the integration of UML use case and class diagrams for
less time-critical parts of the system. Objects can be associated to processes or blocks and
used in the behavioral parts of the processes.
In both SDL and SDL-RT projects, RTDS also integrates the Message Sequence Chart
dynamic view. On such a diagram, time flows from top to bottom. Lifelines represent
agents, semaphores or objects and key SDL-RT events are represented. The diagram
emphasizes the sequence in which the events occur.
Would you need any extra information on the diagrams and their meaning, the following
references may be used:
• For SDL, the SDL Forum web-site has many tutorials and presentations:
http://www.sdl-forum.org/
• For SDL-RT, the reference manual is available in RTDS via the Help / SDL-RT ref-
erence menu. This manual is also available on the SDL-RT web-site:
http://www.sdl-rt.org
Start
State
Input
Output
Plain C code
Decision
Start timer
Stop timer
Take semaphore
Give semaphore
Create task
Declarations
SDL-RT only
Tutorial
Real Time Developer Studio V4.3 Page 5
2 - A simple system
The system we have chosen is simple enough to be written from scratch but rich enough
to pinpoint the basics of SDL-RT and SDL. It is a very basic phone system composed of a
central and of several phones. When the phones are created, the central gives them an
automatically computed phone number. When a user takes a phone to call another one,
the phone asks the central the id of the phone to be called identified by its phone number.
The caller sends directly a call request to the distant phone. For simplicity sake the dis-
tant phone automatically answers.
This tutorial is divided into two parts, depending on the language:
• The part using SDL starts page 6
• The part using SDL-RT starts page 58
And one part for the automatic documentation generation that is based on the SDL sys-
tem but that can be applied to the SDL-RT example.
If you do not want to design the example, you can find a complete project of this system
in the examples under "SDL/tutorial" and "SDL-RT/tutorial".
剩余123页未读,继续阅读
虹科
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5