Hello everybody:

On the weekend I moved my XmAD software from RT-Linux Ver. 1 to Ver. 2
(Posix).
This software is a data acquisition program that polls data from an
AD-converter chip
(MAX186) that is connected to the serial port.

Everything went smooth. However I encountered the following problem:
At higher sampling rates the screen saver of my Notebook computer shuts
off the screen
about every second or so. I used pthread_make_periodic_np() to start the
periodic thread
that polls the data from the serial port. My question is:

Does pthread_make_periodic_np() interferes with a timer of the computer
that
controls the advanced power management (APS) functions? Is there a way
to
get around this problem by using other pthread_ ... functions?

A second question is, how to set the period of the periodic thread in
pthread_make_periodic_np()? I have the sampling rate in a integer
variable sr.
Is it ok to use:  NSECS_PER_SEC/sr

Do I need to use rtl_setclockmode()  or is this done by
pthread_make_periodic_np() ?

Thanks for all the help and of course for RT-Linux.

Regards,
Harald


--
PD Dr. med. Harald M. Stauss
Humboldt University - Charite
Dept. of Physiology
Tucholskystrasse 2, 10117 Berlin


--- [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/

Reply via email to