LTH

Automatic Control Homepage
  Introduction
  Education
  People at the Department
  Publications
  Research
  Search
  Seminars / Conferences
  Finding Us

Automatic Control

Log in

  Department of Automatic Control

TrueTime is a Matlab/Simulink-based simulator for real-time control systems. TrueTime facilitates co-simulation of controller task execution in real-time kernels, network transmissions, and continuous plant dynamics. Features of the simulator include

  • Written in C++ MEX, event-based simulation
  • External interrupts
  • Possibility to write tasks as M-files or C++ functions. It is also possible to call Simulink block diagrams from within the code functions
  • Network block (Ethernet, CAN, TDMA, FDMA, Round Robin, Switched Ethernet, FlexRay and PROFINET)
  • Wireless network block (802.11b WLAN and 802.15.4 ZigBee)
  • Battery-powered devices, Dynamic Voltage Scaling, and local clocks
  • Stand-alone network interface blocks
From June 2010 the network parts of TrueTime are also available for Modelica using the Dymola 7.4 simulation tool from Dassault Systemes.

News

  • 2011-04-04
    Minor bugfixes in TrueTime 1.5 for the latest versions of Matlab
  • 2010-07-16
    TrueTime 2.0 beta 6 has been released. Added support for Network Code Machine by Sebastian Fischmeister et al.
  • 2010-06-10
    TrueTime Network for Modelica has been released. Two versions have been developed -- one based on an external C code implementation and one based on native Modelica. This work has been done within the ITEA 2 project EUROSYSLIB.
  • 2010-05-06
    TrueTime 2.0 beta 5 has been released. Very minor changes to make TrueTime compile under Matlab R2009 and under Mac OS X. Note that precompiled MEX files are no longer supplied. The manual has been updated.
  • 2009-10-15
    TrueTime 2.0 beta 4 has been released. A bug regarding empty error messages has been fixed; the soccer example has been updated and included; two more network protocols - FlexRay and PROFINET - have been added. WARNING: The new network protocols are experimental and are very likely to contain bugs.
  • 2009-09-18
    TrueTime 2.0 beta 3 has been released. Bug fixes include network block random number generation under Windows, block masks, ttSetPeriod, and more. Network and AODV examples included. See the HISTORY file for a complete list of updates.
  • 2009-05-11
    TrueTime 2.0 beta 2 has been released. A serious bug has been fixed that did not allow multiple kernel blocks within the same Simulink model. For further changes, see the HISTORY file.
  • 2009-01-14
    TrueTime 2.0 beta 1 has been released. The most important change is that the simulator will be released under the GNU GENERAL PUBLIC LICENSE. Other changes include:
    • Automatic connections between Kernel and Network blocks
    • Improved configuration of the Kernel block via the mask dialogue
    • New syntax for several real-time primitives
    • New implementation of handlers
    • New Ultrasound Network block (for simulation of mobile robot localization)
    • Improved stand-alone network blocks to handle vector signals
    • Full built-in support for CBS scheduling
    • And much, much more.
    Please note that TrueTime 2.0 only exists in a beta version so far. Bugs are likely. So far, only four examples are included in the distribution. The manual needs to be updated further. Models developed in TrueTime 1.5 and earlier cannot be run in TrueTime 2.0 without some modifications.
  • 2007-01-05
    TrueTime 1.5 has been released. The new version has dramatically improved performance in the network blocks and features new stand-alone network interface blocks (ttSendMsg/ttGetMsg).

Reference Manuals

Anton Cervin, Dan Henriksson, Martin Ohlin: TrueTime 2.0 beta 5 - Reference Manual".   Department of Automatic Control, Lund University, Sweden, June 2010.

Software

TrueTime is Matlab-based and requires Matlab 7.0 (R14) with Simulink 6.0 (R14) or later. Control System Toolbox is required to run some of the examples.

TrueTime has been tested under Linux, Windows, and Mac, but will probably run on other platforms as well. Please note:

  • You need to compile TrueTime yourself before running any examples, using the make_truetime Matlab script.
  • The blocks and kernel functions may be compiled using gcc under Linux and Mac OS X or using Visual Studio C++ Express Edition under Windows XP or Windows Vista. Other C++ compilers should also work, but might require some small tweaks.
  • If you have trouble compiling the MEX files using Visual Studio C++, see the following guide

TrueTime together with some examples can be downloaded as a compressed archive.

Developers

The following people have contributed to TrueTime (in reverse chronological order):

Main TrueTime Publication

If you write a paper and want to make a reference to TrueTime, please cite the following publication:

All TrueTime Publications

The Old Version of the Simulator

The old version of the simulator (1999) is still available here.


truetime@control.lth.se
Last modified: 2010-07-16