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.

Plecs code generation (C2000 Package)

0 votes
282 views
Hi,

I am using PLECS C2000 Target Code generation feature from model and I am not sure about one thing.

Why content of main source file is changed every time, when code is generated, even if there is no any change made in model?

Best regards
Dawid
asked Aug 4, 2023 by Dawid Kokosa (20 points)

1 Answer

0 votes
 
Best answer
The generated code is not just a function of the *.plecs model file.  Regarding the model itself, there can be dependencies on external code such as *.m files that are run as part of initialization or files that are included in C-Scripts.

The generated C code also is a strong function of Lua scripts which could be modified externally as well.

These are reasonable justifications for regenerating the code on every build, even if the *.plecs model itself remains unmodified.
answered Sep 14, 2023 by Bryan Lieblick (1,909 points)
selected Feb 9 by Dawid Kokosa
...