Hi!

I have a RTAI app with unexplainable behavior.

The app reads from RT FIFOs after a select tells that data are available
there. 
If a choosen amount of data is read and saved the app stops the RT
driver. For repeatable results if I want to sample data again the
RT-FIFOs should be empty (what they are not if I do nothing special).
For emptying I use to read until the return value of the read is not
equal the size of the data I want to retrieve.
Now the problem: altought the fifos are opened O_NONBLOCKING the read
stops and blocks the app, also if I use a select to look if data is
available and this select returns with "data available" a consecutive
read blocks the app.

What could be the reasons for that ?

How else can I empty the RTFIFOs? 


thanks a lot

--jens


-- 
Jens Lauer
TU Chemnitz /Germany
09107 Chemnitz
Fakultaet fuer Elektrotechnik und Informationstechnik
Lehrstuhl Elektrische Maschinen und Antriebe (Prof. Hofmann)

Tel +49 (0)371 531 3379
Fax +49 (0)371 531 3324 
[EMAIL PROTECTED]
-- [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