DLL Block error : File not found *.dll...

Yong Jun Lee_21635
Yong Jun Lee_21635 Altair Community Member
edited December 2023 in Community Q&A

When the inverter circuit using the DLL block is simulated, an error occurs with the message below.
"File not found."
<File Name>.dll

There seems to be no problem with the file name or path setting.

There is no problem in PSIM legacy version, 9.14, But latest version 2023 had a problem.
Visual Studio was installed in the same version, but an error occurred.

I want to know what the cause is.

Tagged:

Best Answer

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited December 2023 Answer ✓

    To use 32bit DLL in a 64bit PSIM version (PSIM2020 and newer), please use a "General DLL Block".

    If you have copied the old PSIM schematic from a different location, 

    1. Make sure the DLL file is copied to the new computer.

    2. Open the DLL block parameter dialog to make sure the DLL filename and path are correct. The old path could still be in the parameter dialog.

    3. In the parameter dialog, check the box "Load DLL in an external process (slower simulation".

     

    Sincerely,

    Rhonda

Answers

  • Albert_Dunford
    Albert_Dunford
    Altair Employee
    edited December 2023

    PSIM 9.14 is likely 32-bit, and PSIM 2023 is 64-bit. You will likely need to recompile the .dll to be 64-bit compatible.

     

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited December 2023 Answer ✓

    To use 32bit DLL in a 64bit PSIM version (PSIM2020 and newer), please use a "General DLL Block".

    If you have copied the old PSIM schematic from a different location, 

    1. Make sure the DLL file is copied to the new computer.

    2. Open the DLL block parameter dialog to make sure the DLL filename and path are correct. The old path could still be in the parameter dialog.

    3. In the parameter dialog, check the box "Load DLL in an external process (slower simulation".

     

    Sincerely,

    Rhonda

  • Yong Jun Lee_21635
    Yong Jun Lee_21635 Altair Community Member
    edited December 2023

    Okay, I`ll check and try what you told me.

    Best regards.