Page 1 of 1

Logging frequency

Posted: Tue May 04, 2021 1:25 pm
by Max_Kemmeren
Hi all,

Is there a way to log variables at speeds higher than 100 Hz without the sd card deck? I need speeds of 500Hz for the INDI controller.

Thanks!
Max

Re: Logging frequency

Posted: Wed May 05, 2021 8:03 am
by kristoffer
The log framework can not handle that high sampling frequency.

Another options that I can think of is to write data to a RAM buffer and dump it to the console (slowly) after the test is finished. The RAM is fairly limited in size though.

Re: Logging frequency

Posted: Wed May 05, 2021 9:32 am
by Max_Kemmeren
Thanks! The sd deck is able to log at that high of a frequency right?

Re: Logging frequency

Posted: Thu May 06, 2021 11:57 am
by kristoffer
Yes, the SD card should be able to handle 500 Hz. The main limitation for the SD-card is the total data rate. Data is stored in RAM buffers (512 bytes I think) that are written to the SD card when full. If you log faster than can be written to the card, it will be discarded. When you stop logging I think you get a report in the console log of how much data that was discarded.