I made a DLL file with C code (I’m implementing a PLL) but when I try to load the DLL on PSIM “General DLL” Block I receive the error: “Unable to Access the function “RUNSIMUSER” in DLL file: C://…”. If someone could please help me i’ve tried to change the name of my C function to RUNSIMUSER but it didn’t work.
I apologize for the delayed response, please check that the dll you have compiled has the same bits as the PSIM version you are using. You can check the bits of you PSIM by looking in Help->about PSIM, if you see no bits defined you are using 32-bit. The 64 bit version will be clearly labelled. You dll needs to be 32-bit if you have 32 bit PSIM. If you have 64-bit PSIM you need to have a 64-bit dll. If you did not compile the dll, we provide access to both the 32-bit and 64-bit versions please contact our support email and they can provide you the proper links if you need a different version of PSIM.
I was trying to simulate using a 3 input dll block, but when I try to run it says the same the Unable to Access the function but actually show some chinesse character. I am using a 64 bit version and the compilation is with visual studio 2017.