>Subject: How to store record from serial poilling?
>From: "Ng Wei Gee" <[EMAIL PROTECTED]>
>Date: Wed, 14 Mar 2001 11:04:30 +0800
>
>I'm working on a project that acquires data from the serial port
>on a polling basis (with polling interval typically around 0.2s). 
>What's the best way of storing the records? 
>Do I store each polled data every 0.2s or do I buffer a certain 
>amount into memory before storing them? What's the overhead
>introduced using the database manager's APIs? 
>I'm worried that by storing every data at every polling instance,
> the overhead might be too great and it will miss the next polling interval.

>Also, what happens to a record that it opened if someone resets the device?
>Does it get lost? Will it have something like "lost clusters" on the PC? :)

If you are simply writing a 5 records a second, then you shouldn't get
into a performance problem unless you expect to write tens of thousands
of records.

If you are going to be receiving tens of thousands of records, then some
kind of buffering technique becomes absolutely necessary.

The "file open" problems of PC systems do not appear to manifest
Palm OS devices.  Writes to a Palm database occur immediately
without buffering!

Roger Stringer
Marietta Systems, Inc.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to