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.

DLL example error filename

0 votes

I have tried to use DLL but I always have the same error message:

"Error evaluating parameter 'Filename' in component Modulation: Cannot load library 'C:\Temp\visualSVM\MOD\Debug\dllMOD.dll'."

The file "dllMOD.dll" exist and is in the same directory than my plecs file

I have already tried to compile and gebnerat DLL with visualStudio and CodeBlocks.

Any idea ?

asked Mar 15, 2021 by gateau (14 points)

1 Answer

0 votes

One common source of this issue is the DLL's target platform not matching the PLECS version. With a 64 bit PLECS executable, the DLL must be compiled for a 64 bit system.

Are you compiling for an x64 target platform?

Are you able to successfully compile a simple model from the "Using the DLL Block" tutorial?

answered Mar 16, 2021 by Bryan Lieblick (1,995 points)
Thanks for comment. I change the target n Visual Studio to x64 and it is now working !