jirimaier / DataPlotter

GUI interface for custom software-defined instruments
https://jirimaier.github.io/DataPlotter/
9 stars 2 forks source link

Rolling mode max sampling #7

Open komodensys opened 1 week ago

komodensys commented 1 week ago

Hello and congrats on the newest GUI the fonts are much more smooth! Nice app got to say that yours is the only one I can find that makes baudrates of 2.25M :)

Im working on a diy firmware for the roll mode and whatever i do cant seem to pass the 13Ksps its point to point of around 80us, for live continuous stream its very good i think, but is it the max the app can make ?

Above that the serial inside the app reports ok (so no prob on usb) but does not plot...
The only thing I didnt tried is sending in binary instead of text but dont believe will make it much more faster...

Can you tell me what you think?..

PS: Thanks anyway for the app

jirimaier commented 1 week ago

Hello,

13ksps is very high for rolling mode. The speed of the serial might be the bottleneck. Try using a USB Virtual Com Port (on MCU with native USB, rather than USB<->UART converter). The Virtual Com Port works (regardless of the baud rate setting) faster than UART.

Sending binary data may help. It will likely have slightly less bytes per sample compared to text, also it may help with performance on the microcontroller, as sending byte is faster than printf.

Even if this improves communication speed, you will eventually run into performance issues with the app itself. Rolling mode is generally not meant for such a high sampling rate.

komodensys commented 1 week ago

Hi, thx for answer 13ksps was with usb didnt tryed it yet with uart with my firmware on G474, but I was using too low adc buffer couldnt capture anything...
now Ive raised the buffer to max and sampling speed dropped and its better looking... just learned that in rolling mode does not have to be fast as an oscilloscope lol Im using the $$P-auto is this time accurate enough because my samples arent spaced uniform ? or my firmware has same fault I use it in oscilloscope mode with uart with the VSVI f303re ftdi with 2Mbaud and its great...