5.0

5.0 | 1 rating Rate this file 125 downloads (last 30 days) File Size: 20.73 KB File ID: #21908

Simulink® Real Time Execution

by Guy Rouleau

 

27 Oct 2008 (Updated 18 Jun 2009)

Code covered by BSD License  

C-MEX S-function that reduces the execution speed of a model close to real time

Download Now | Watch this File

File Information
Description

This block should be used to reduce the speed of a Simulink® model so that it can be observed running in real time. If the simulation is already slower than real time, this block has to effect.

To use it, extract the files to a directory on the MATLAB path. Re-open the Simulink browser and you should see a new library named "Useful Stuff" which contains one block named "Real-Time Subsystem". Place this block in a model to use it.

To use this file under other operating systems, just run "mex sfun_time.c" to generate the MEX-file for your platform

Required Products Simulink
MATLAB release MATLAB 7.7 (R2008b)
Other requirements Tested only on Windows 32-bits
Zip File Content  
Other Files license.txt,
rtc_example.mdl,
sfun_time.c,
sfun_time.mexw32,
slblocks.m,
utility.mdl
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
03 Jul 2009 Andreas

Fantastic!!! And so easy to use!!!!

Please login to add a comment or rating.
Updates
08 Jan 2009

Updated to allow scaling of time. It is now possible to specify that one second of simulation is X seconds in real life.

26 Feb 2009

To use this file under other operating systems, just run "mex sfun_time.c" to generate the MEX-file for your platform

18 Jun 2009

Minor modif for BSD license

Tag Activity for this File
Tag Applied By Date/Time
simulink real time execution Guy Rouleau 27 Oct 2008 16:14:49
simulink Cristina McIntire 08 Jan 2009 13:51:50
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com