MCUViewer icon indicating copy to clipboard operation
MCUViewer copied to clipboard

High speed plotting

Open Vasili-Sk opened this issue 1 year ago • 5 comments

Can we use STM logger (STtrace) library for buffered high data rate plotting? i'm also in motor control and sine is barely visible there :)

Vasili-Sk avatar Nov 14 '23 07:11 Vasili-Sk

Hello, could you elaborate on the topic, or show the problem you're facing? I'm not sure I understand the question.

klonyyy avatar Nov 14 '23 07:11 klonyyy

STM Studio had special libraries for logging data from inside chip, this way you can synchronise it to end of FOC routine, for example and have clearer data at PWM speed image These are STM libraries. image when you click this little square in stm studio it changes logger mode to buffered, also in settings you can setup how much calls to DumpTrace to be skipped. DumpTrace is a function you need to call from your code that saves data.

Vasili-Sk avatar Nov 14 '23 07:11 Vasili-Sk

I must admit I wasn't aware of this feature. STMStudio still keeps surprising me. I'd have to research this topic, but right now If you'd like a synchronous way of logging data you should try the Trace Viewer and SWO output. I'll keep in mind to try it out and see how it works/how it is implemented in STMStudio. Thanks!

klonyyy avatar Nov 15 '23 06:11 klonyyy

yeah i wish but my boards dont have SWO anymore since i found this thing and always used it :P

Vasili-Sk avatar Nov 15 '23 07:11 Vasili-Sk

Got it. In this case I don't think it's possible to synchronize the readings currently. It seems like a very interesting feature, but most probably it will take some time for me research and implement it. Feel free to contribute on this feature if you have some free time, though! :)

klonyyy avatar Nov 15 '23 07:11 klonyyy