Hi Paoloni,
I think that if you take a look at the hard real time side of my code
(http://rtic-lab.sourceforge.net) you will see some ideas that might help
you in your project. Once you download the software, take a look at the
directory "rt_tasks". Of interest especially are the files "support.c" and
"supervisor.c". If you want to see what happens in the non-rt side, take a
look at the directory "non_rt_tasks/rt_comms", especially the files
"monitor.c" and "common.c".
Best of luck! Let me know if you run into any trouble.
-Edgar
Thomas Paoloni wrote:
> Hi,
>
> I'm new on RT Linux programming and I need some suggestions:
> I'm writing some software in order to have an automatic machine working,
> i'll have all peripherals connected to my PC trough a Profibus card.
> My machine is composed of various mechanical devices each one working
> alone or, sometimes, in conjunction with the other one.
> I want to write a very object oriented program in order to be able to
> stop only one part of the machine, change the RT module that is
> controlling it on the fly and start it again without stop the entire
> machine.
> If I'm not wrong, the best thing to do is to create some RT modules, and
> exchange informations using FIFOs, but I think I'll have a lot of
> informations to pass from a module to another and the ideal is to have
> all tasks inside a single module; but how can I make an upgrade to one
> task without unload all the module (and stop so the machine) ?
> How can I create a kind of memory space shared between all my running
> modules ?
>
> I have read all the examples include in the distribution but I think
> this is not enought.
> For example, I made some tries, modifying these examples, and I created
> a program with a frequency call that was smaller than the execution time
> of my module ... the result: my PC was hanging and it took my a lot of
> time to understand that this was the reason why !
> I can't learn everyting by hitting my head on all problems.
> I'm able to programming using C or C++ but, where can I found some
> documentation to read so that I can learn RT Linux programming style ?
> I found all the documentation concerning all RT functions, but I need to
> learn how to progam under RT and know when I need to use certain
> functions.
>
> Thanks in advance.
>
> -- [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/
--
Edgar F. Hilton email: [EMAIL PROTECTED]
FSMLabs Toolbox Division Manager voice#: (850) 893-0300
Finite State Machine Labs, Inc. fax#: (206) 350-4EFH
http://www.fsmlabs.com http://rtic-lab.sourceforge.net
-- [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/