Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High speed plotting #20

Open
Vasili-Sk opened this issue Nov 14, 2023 · 7 comments
Open

High speed plotting #20

Vasili-Sk opened this issue Nov 14, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Vasili-Sk
Copy link

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 :)

@klonyyy
Copy link
Owner

klonyyy commented Nov 14, 2023

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

@Vasili-Sk
Copy link
Author

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.

@klonyyy
Copy link
Owner

klonyyy commented Nov 15, 2023

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 klonyyy self-assigned this Nov 15, 2023
@klonyyy klonyyy added the enhancement New feature or request label Nov 15, 2023
@Vasili-Sk
Copy link
Author

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

@klonyyy
Copy link
Owner

klonyyy commented Nov 15, 2023

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 klonyyy added this to the Recorder milestone Dec 15, 2024
@cickok
Copy link

cickok commented Feb 6, 2025

Hello there,

this feature is so called "snapshot mode" and it is really useful for exaple PID controller tuning. We (automatization and motor contorl engineers) will be really appreciated if this feature will be implemented :)

BTW this tool is very nice, much more than original STM studio (which is moreover not supported by new elf v5 or something like that).

Good job and best regards.

@klonyyy
Copy link
Owner

klonyyy commented Feb 6, 2025

I'll give more info on this topic soon, for now I can say it will be integrated in MCUViewer ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants