From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: nourry@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_printf and file writing
Date: Mon, 05 Jan 2009 14:53:36 +0000 [thread overview]
Message-ID: <49621EF0.9050604@domain.hid> (raw)
In-Reply-To: <1231163752.49621168d278c@domain.hid>
nourry@domain.hid wrote:
> Hi all,
>
> maybe another silly question but where is written string passed to rt_printf ?
> My program compiled fine but nothing appears on the screen, the issue is that
> i'm doing data acquisition and i need to check during progression values i get
> (anyway i've been asked to print these values on the screen).
>
> Another thing, in order to keep these data even if the computer may come to
> crash, we would appreciate to save them in a file, is there a way to do so in
> realtime ?
Printing on the screen or to a file uses Linux drivers, so is not a
real-time operation, at least up to now with Xenomai. What you can do is
get real-time tasks to use a buffering IPC of some sort to let a non
real-time task do the actual writing to file or to the screen.
This is what rt_printf does. So, maybe you do not see anything because
your real-time task is running all the time and does not let linux run?
--
Gilles.
next prev parent reply other threads:[~2009-01-05 14:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-05 13:55 [Xenomai-help] rt_printf and file writing nourry
2009-01-05 14:53 ` Gilles Chanteperdrix [this message]
[not found] ` <4963C4BA.1080706@domain.hid>
2009-01-07 14:26 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49621EF0.9050604@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=nourry@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.