Download Modeling with TDL

Transcript
Contents
The Timing Definition Language (TDL) in a nut shell
1
What is a TDL component (= module)? .................................................................................... 2
Logical Execution Time (LET).................................................................................................. 3
TDL sample modules................................................................................................................. 3
TDL modeling and platform deployment .................................................................................. 6
Guided Tour of the TDL:VisualCreator tool
9
Define module M1 ..................................................................................................................... 9
Start TDL:VisualCreator in Simulink®..................................................................... 10
Add constants c1 and c2 ............................................................................................ 11
Edit sensor s............................................................................................................... 12
Edit actuators a1 and a2 ............................................................................................ 14
Edit tasks inc and dec ................................................................................................ 15
Edit modes f11 and f12 .............................................................................................. 23
Test module M1......................................................................................................... 49
TDL source code of module M1................................................................................ 51
Define module M2 ................................................................................................................... 52
Add module M2......................................................................................................... 53
Remove sensor .......................................................................................................... 53
Import module M1..................................................................................................... 54
Edit actuator a ........................................................................................................... 55
Edit task sum ............................................................................................................. 57
Edit mode main ......................................................................................................... 65
TDL source code of module M2................................................................................ 69
Test module M2......................................................................................................... 69
Synchronous actuator updates and advance calculation .......................................................... 71
Structured Data Types ............................................................................................................. 73
Generating platform-independent code for TDL modules....................................................... 75
Transparent distribution of TDL modules ............................................................................... 75
TDL:VisualCreator
79
Differences between the demonstration and product versions................................................. 79
Set-up as stand-alone tool ........................................................................................................ 80
Set-up as add-on to Simulink®................................................................................................ 80
Preliminaries ............................................................................................................................ 82
Adding a TDL construct ............................................................................................ 83
Editing a TDL construct ............................................................................................ 84
Deleting a TDL construct .......................................................................................... 86
TDL program text...................................................................................................... 87
TDL constructs ........................................................................................................................ 87
TDL Import declaration............................................................................................. 87
TDL Constant declaration ......................................................................................... 88
TDL Type declaration ............................................................................................... 88
Modeling with TDL
Contents • iii