Code covered by the BSD License  

Highlights from
RTsync Blockset

5.0

5.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 34.26 KB File ID: #24975

RTsync Blockset

by Sergey Shapovalov

 

10 Aug 2009

MATLAB Simulink library to perform model's real-time simulation without any additional components

| Watch this File

File Information
Description

RTsync Blockset extends MATLAB Simulink simulation capabilities in real-time simulation. Blockset consists of a single block which, when placed to a model, syncronizes a simulation time to CPU real-time clock.

A concept of real-time simulation in Simulink is rather simple buf effective. Normally, model simulation runs much faster than real time (if simulation runs slower then no one can help, not in Windows OS). It is possible to measure a time of each simulation step and actual CPU time taken. So you can calculate a time delay a Simulink process must sleep after each simulation step to perform real-time simulation. As a result, you achieve a real-time modeling with no additional CPU load. RTsync Blockset utilizes theory mentioned above and some other magic.

Actually, RTsync Blockset does not make a breakthrough in real-time simulation. There were several tools and ideas for real-time simulation in Simulink before. MATLAB developers also propose some methods. Personally, I have used Real-Time Blockset for Simulink by Leonardo Daga for couple of years before I found an inexactness in it in some cases and wrote my own for better simulating results.

Required Products Simulink
MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Apr 2010 Laurent

Great job! Works as expected.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulation Sergey Shapovalov 10 Aug 2009 12:07:10
simulink Sergey Shapovalov 10 Aug 2009 12:07:10
automotive Sergey Shapovalov 10 Aug 2009 12:07:10
realtime Sergey Shapovalov 10 Aug 2009 14:01:38
real time Sergey Shapovalov 10 Aug 2009 14:12:16
blockset Sergey Shapovalov 16 Aug 2009 07:27:48
real time simulation Gautam Vallabha 30 Sep 2010 17:29:55

Contact us at files@mathworks.com