[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RTFifo questions



Hi all!

I am having problems getting my RTfifos to work the way I think they should, mind me, I may of course be incorrect in my assumptions.

The general scenario is the following: I am using a RTfifo mainly for testing if my realtime algorithms are correct, i.e., test data is "logged" to an RTFifo and then read by a user-space program that will interpret the data and save it to disk in a less raw and more usable form. 

Problem: when debugging the realtime program, if i step over the rtf_put() call, data appear correctly in my user space test progeam. However, if i continue executing past the point of calling rtf_put(), data does not appear at all in the other end of the fifo! Calling rtf_flush() does not help in this matter. 

Sometimes the results are even more confusing, since SOME data is lost on the way to user space, but not all! Even more: the first four-byte data sequence written using rtf_put(), i.e., from the first rtf_put() call, is NEVER missed!

I am completely out in the blue here. :-) Can someone help?

Yours sincerely,
Jonas Persson

______________________________________________________________________
 Jonas Persson                    E-mail: jonas.persson@comsys.se
 Project Manager, M.Sc C.Sc&E     http://www.comsys.se/
 Comsys AB                        Phone: +46-(0)46-286 3500
 Forskningsbyn IDEON              Fax: +46-(0)46-286 3505
 S-223 70 Lund, Sweden