NREL / ROSCO_toolbox

A repository for generating ROSCO controller input files and more.
http://rosco-toolbox.readthedocs.io/
Apache License 2.0
23 stars 20 forks source link

SFunc issue #66

Closed Gouwslouis closed 2 years ago

Gouwslouis commented 2 years ago

Good day

I am trying to run OpenFast on my Windows computer using the ROSCO controller for simulink.

I have had issues in creating the FAST_SFunc by running the required create_FAST_SFunc.m before which I had to create a DLL with Visual Studio of the "C:......\OpenFast\openfast-main\vs-build\OpenFAST-Simulink\OpenFAST-Simulink.vfproj" file that one can download from the openfast GitHub.

On the OpenFast Github page I saw that there are FAST_SFunc.mexw64 - and OpenFAST-Simulink_x64.dll files that can be downloaded straight off the repository when clicking on OpenFAST v3.1.0 under releases and scrolling down to Assets.

I created a directory on my computer onto which all the required files (such as the matlab-toolbox utilities) are included, including the ROSCO.mdl file and the above-mentioned files. In this directory I try to run the runFAST.m file and the following error arises: Matlab_error.txt

Please tell me if I am not taking the right route and if I should rather go through Visual Studio by opening that OpenFAST-Simulink.vfproj file in Visual Studio? Also, if needed, how does one go about opening such a file in VS? Am I correct in saying that I should go: file>open>project/solution>locate the file>attach>Matlab.exe.

I am sorry for the very long message, I am new to opensource software. I have just been trying for a month to run OpenFAST and I'm hitting wall after wall. Any help will be much appreciated.

Kind regards Louis Gouws