Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Timestamp the data external to the PC or use a real-time OS. Desktop OS that are really good at running Office and Firefox are spectacularly hopeless at real-time data acquisition. The drivers are optimized to signal the receipt of huge data buffers so as to maximize throughput of complex web pages and streamed media. Prompt signaling of the receipt of a couple of bytes, (or even 5K), is a bit below them - the drivers can't be bothered and tend to lie around for ages in case more data comes in, then they can signal it all at once :((</p> <p>All my embedded controllers that return data that needs to be time-stamped return the stamp in the data and do not rely on some megalithic desktop OS to wake up a thread in any sort of prompt manner.</p> <p>That said, you might be able to tweak the serial driver COMMTIMEOUTS to return data more quickly. Whether this will help much is another matter because you have other devices that may be subject to the same issues.</p> <p>Also, what is 'm_logFileStream'? Is this another async or otherwise queued disk write? If not, it should be.</p> <p>If you want to try to apply timestamps to data in the PC in the way you seem to want, then ideally all your data should flow through the same thread that adds the timestamps and does the logging. Writing multiple logs and filtering them afterwards to sort them into timestamp order is just going to add yet more jitter. That sort of thing is what Unix developers do because their computers can only execute bash scripts :))</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload