Ales
Indeed I have had this kind of system on my mind for a year or two !!!
The VxWorks target includes a number of options that you don't need with
Real Time Linux.
A scheduler is provided since this basic functionality is missing in
VxWorks.
Or at least it is missing in the context that one is provided within RTL
and RTAI.
Another problem comes from the libraries that are assumed to be present
with the VxWorks output.
Your best bet may be to use the generic C code output and to try to make
that into some kind of loadable module.
You will have problems with any calls to Kernel routines or C library
functions.
If you create a simple C task for me and mail it to me ( or even post it )
I'll take a look at the output and make some recommendations.
The cost of these tools often precludes their use among most Real Time
Linux users.
Sorry I cannot say much more at this time.
Phil Wilshire
> Hi!
>
> I'm quite a newbie in RTL programming, and have a rather hypothetical
> question for the RTL experts familiar with Matlab & Simulink.
> It concerns the capability to translate a Simulink model to a RTL
> module.
>
> Simulink has the capability of generating C code out of a graphical
> model representation, which can use virtually any Matlab function (there
> exist a huge library of functions in Matlab, which makes it a "de-facto"
> standard as a simulation environment). The application can then be
> executed as a proces of the OS, which can in the best case run in soft
> real-time as I understand it.
>
> It is also capable of generating a code to run on e.g. Tornado VxWorks
> real time OS. They call it targeting a specific hardware/RTOS.
> Would it then be possible to target RTLinux too? Has anyone on this list
> been thinking in this direction or even tried to do something like that?
>
> The standard process of targeting a specific hardware in Simulink/Matlab
> is to use their "Real Time Workshop" to make a platform independent
> model representation and then use "Target Language Compiler" (TLC) to
> make target specific code/executable.
> Then, for RTLinux, the TLC compiler is all there is needed to genrate a
> loadable module? Am I right or do I simplify things too much?
> I guess, that making such a compiler (TLC) is not that simple...
> I assume that Matlab generated C code uses some external libraries and
> probably dynamic memory allocation, which is, as I understand, not
> feasible in RTLinux (or any other hard RTOS).
>
> Does anyone have some useful links/experience of this item?
> Any hint/note or correction of my humble knowledge is welcome!
>
> Regards,
> Ales
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/