Discon.dll loading

Hi All,
I´m facing issues loading the DLL with any FAST, openFAST version since a couple of days.
My setup is that I start the openFAST.exe from a folder where I have all my different versions of openFAST.exe (C:\tools) and load my fst file which is in my actual project folder (i.e. C:\sim\IEA10MW\001\run). Until now I had also the DISCON.DLL stored in that run folder as this is normally project specific.
Now when I run FAST I get the error:
FAST_InitializeAll:SrvD_Init:BladedInterface_Init:The dynamic library turbine/discon.dll could
not be loaded. Check that the file exists in the specified location and that it is compiled for
64-bit applications.
It was not happening before 1 or 2 weeks with the same models (I did not change anything).
In order to have it running I need to move now the DISCON.DLL into the folder from where the exe is started (in my case C:\tools). My suspicion is that some windows settings have changed but I don´t know which ones. By the way it happened on all my different computers but not at the same time (probably after some windows update).

Does anybody have the same issue and found a solution? (putting the DISCON.DLL in the tools folder is not an option)
Principally it works when adding the full path to the DLL_FileName parameter in the servodyn file but now I have a case where I need more flexibility and want to use relative path and there I don ´t get it and want it back to the older way where it took the DLL from the run folder where my fst file is located.
Thank you for your support!

Dear @Florian.Stache,

If I understand correctly, you have OpenFAST.exe located in C:\tools and your input files (which I’ll call Input.fst) located in C:\sim\IEA10MW\001\run and you run OpenFAST from the command prompt as follows:

C:\tools>OpenFAST.exe C:\sim\IEA10MW\001\run\Input.fst

Is that correct? If so, this means that DISCON.dll would have to be located in C:\tools, use a path relative to C:\tools, or use a full path to a different directory.

Alternatively, you can set the C:\tools directory in your search path as an Windows environment variable and then you run the OpenFAST executable from any directory. E.g., from the command prompt you could use:

C:\sim\IEA10MW\001\run>OpenFAST.exe Input.fst

in which case, DISCON.dll would have to be located in C:\sim\IEA10MW\001\run, use a path relative to C:\sim\IEA10MW\001\run, or use a full path to a different directory.

Best regards,

Hi Jason,
That was it! Somehow my path variables must have been changed during a windows update. I added the tools folder to the path and it is back working again.
Thank you !
Best Regards,
Florian

1 Like