04-17-2007 09:41 AM
04-19-2007 04:27 PM
Matt
If I understand correctly, you are running an application and after 24 hours, you get a buffer condition. What error code are you getting?. Also, how much space is left on the SD card at that time?
Regarding your Producer/Consumer Loop question. I just created an application running on a PDA using that design pattern. I was able to verify that it is indeed possible to create such applications on PDA. Are you continuously feeding data into the consumer loop or only after the producer loop stops?
Please let me know.
Regards,
Rudi N.
04-19-2007 05:20 PM
Hi Rudi,
I get the buffer overfill condition not at 24hrs, but at random times during the 24hr period. I have it setup so that it writes data to different files depending on what hour it is at relative to the initial start. When it reaches the point that it is looking for hour 25, it asks me for the name/location of where to write, which I cancel and the program stops ok. I have implemented a error checking routine where if the buffer overruns then the error is cleared, the task is stopped, and then the task is started again. This is ok since it only happens rarely, if at all during the 24 hour period, however, I would like to eliminate it at all.
I think that I am pretty much at the max throughput for sampling 3 channels across the CF bus, processing through a digital filter, and then sending the data to a card across the SD bus. When I try the producer/consumer the consumer doesn't run, I assume because the producer/consumer is slower than the single loop code. I would have to continuously feed data into the queue for the consumer to process, since the acquisition (producer) must run continuously for 24hrs.
Any ideas?
Thanks,
Matt
04-20-2007 04:30 PM