Linux Soft Real-Time Target v2.4
by Dan Bhanderi
28 Sep 2004
(Updated 28 Aug 2008)
Custom Linux target for Real-time Workshop.
|
Watch this File
|
| File Information |
| Description |
The Linux Soft Real-Time Target is a target definition to Real-Time Workshop from Mathworks. The target uses the POSIX real-time clocks to generate periodic signals, to wake the model process at every time step. The process is changed to real-time highest priority defined by the scheduler, and therefore needs root privileges to execute.
The Linux Soft Real-Time Target does not run hard real-time, since the kernel of Linux itself is not preempted by the scheduler. As a consequence, model execution can occasionally be delayed.
A standard Linux kernel preempts every 10 ms. Higher resolution of the task switching, and thereby precision of the model execution, can
be achieved by setting HZ to a different value in asm/param.h, included in the kernel source, and re-compiling the kernel.
To include C S-Functions from other directories place the rtwmakecfg.m file included in this package in the directory of the C S-Function
source file. The C S-Function must be mex'ed in order for Simulink to pass the path to Real-Time Workshop. |
| Required Products |
Real-Time Workshop
Simulink
|
| MATLAB release |
MATLAB 7.3 (R2006b)
|
| Other requirements |
Linux platform. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 18 Jan 2006 |
Walid M.
|
|
|
| 06 May 2006 |
ALI AHMED
|
|
|
| 20 May 2008 |
Oleg Oleg
|
|
|
| 29 Sep 2010 |
omar gomez
|
|
|
| Updates |
| 02 Dec 2005 |
Support for R14 SP3 |
| 02 Dec 2005 |
Support for R14 SP3 |
| 30 Oct 2006 |
Re-installation of default signal handler was observed causing exit of real-time code. The handler is now installed after each execution.
The RTW parameters now supports linker options mainly for comedi support. There is a post-compilation command. |
| 18 Jan 2007 |
Added support for cross-architecture code generation. |
| 27 Feb 2007 |
Updated files, as something went wrong with previous update. |
| 26 Mar 2007 |
Added support for including C S-Functions from other directories. |
| 12 Aug 2008 |
Added detection of sample overrun. The Alarm Clock exit is not substituted with a deadline violation notification, and continued exectution.
Added "[LNX]" to all model outputs to separate from other debug info from e.g. S-Functions. |
| 28 Aug 2008 |
Title mismatch. |
|
Contact us at files@mathworks.com