Page 1 of 1

Interface Openfast in Simulink

Posted: Tue Oct 22, 2019 10:48 pm
by Mohamed.Fekry
Dear all
I am trying to interface the OpenFAST with Matlab/Simulink as "FAST_SFunc.c". However, many errors have been arisen in Matlab command windows every time I run Create_FAST_SFunc.m (attached in Simulink.zip)
error.JPG
error.JPG (42.09 KiB) Viewed 717 times


also, I tried to include some files in the matlab workng directory as:
FASTLib_x64_Debug.lib
SuperController_Types.h
FAST_Library.h
OpenFOAM_Tyeps.h

But the errors still persist as in text file error.zip

Did any one experienced this kind of errors?

Re: Interface Openfast in Simulink

Posted: Wed Oct 23, 2019 9:33 am
by Bonnie.Jonkman
The error you are showing indicates that the path to FAST_Library.h is not correct in the mex command.

That said, the OpenFAST interface to Simulink has not worked after NREL moved from FAST8 to OpenFAST (the error messages in your attachment refer to this problem). I initiated a pull request to fix it last year, but it never was merged and now has conflicts with other changes that were merged later. You could try this version: https://github.com/OpenFAST/openfast/pull/204. Or maybe just comment there so that someone from NREL takes the time to merge the code into the dev branch.