Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

Is there a way to log data acquired in External Mode?

0 votes
70 views
I'm using an STM32 microcontroller to sample some voltages/currents of a power converter and use them in a control loop to generate the desired PWM.

Since the application involves a lenghty battery charging/discharging, I would like to save, periodically, the values of the voltages and currents acquired by the ADC. Is there a way of doing so, maybe through external mode?

Thank you!
asked Sep 20 by Gabriele Lozito (24 points)

1 Answer

0 votes
 
Best answer
One approach is to use STM32CubeMonitor with the code generated from PLECS.  You will have to review the generated code in the <model_name>.c file to find the relevant variable names to monitor.  Also note that you cannot simultaneously have External Mode in PLECS and STM32CubeMonitor enabled simultaneously.
answered Sep 23 by Bryan Lieblick (2,045 points)
selected Sep 24 by Gabriele Lozito
Thank you very much!
...