Thank you Gilles. It is quite nice to see an answer after so many days.
Yes I realized what you said.
Anyway, I found out, that I could use memory-mapped files for this purpose.
As a side note, modifying trivial_periodic to use rt_printf solved
this 50us jitter issue. Now for a 1KHz loop, the jitter is around ±1us
only!
Addition of rt_printf produced some compile time errors which were
gone by the addition of following line to Makefile (taken from
rtprint):
###### SPECIAL TARGET RULES ######
trivial_periodic : trivial_periodic.c
$(CC) $(CFLAGS) $? $(LDFLAGS) -lrtdk -o $@
Regards,
On Wed, Apr 9, 2008 at 5:02 PM, Gilles Chanteperdrix
<[EMAIL PROTECTED]> wrote:
>
> Asif Iqbal wrote:
> > Hello
> >
> > I just installed Xenomai on 2.6.24 kernel and played with some examples
> from
> > the cvs repository. I can create a 10 KHz hard real-time loop in an
> > amazingly simple way *rt_task_set_periodic.* There is a certain jitter
> that
> > can occasionally go as high as 50us(!) but I have not had any overruns.
> >
> > Now I would like to do the following:
> >
> > 1) Read data from serial port that is coming from a microcontroller board.
> > 2) Filter this data using a simple low-pass filter
> > 3) Share the results through a webserver (Apache) at a much lower
> frequency
> > @ ca. 1 Hz.
> >
> > Could you point me to some example source code that resembles my needs,
> esp.
> > step 3?
>
> I am afraid your question is a bit off-topic on this list. Publishing
> results through a webserver is not an issue that I face frequently, and
> I guess this is the case for many people on this list.
>
> --
>
>
> Gilles.
>
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help