Interface Openfast in Simulink

Provide feedback, request enhancements, and get help with wind-turbine computer-aided engineering tools.

Moderators: Bonnie.Jonkman, Jason.Jonkman

Posts: 27
Joined: Mon Dec 25, 2017 5:47 am
Organization: Zagazig University
Location: Egypt

Interface Openfast in Simulink

Postby Mohamed.Fekry » Tue Oct 22, 2019 10:48 pm

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
error.JPG (42.09 KiB) Viewed 993 times

also, I tried to include some files in the matlab workng directory as:

But the errors still persist as in text file

Did any one experienced this kind of errors?
(25.24 KiB) Downloaded 69 times
(2.95 KiB) Downloaded 68 times

Posts: 574
Joined: Thu Nov 10, 2005 10:51 am
Organization: Envision Energy USA
Location: Colorado
Location: Boulder, CO

Re: Interface Openfast in Simulink

Postby Bonnie.Jonkman » Wed Oct 23, 2019 9:33 am

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: Or maybe just comment there so that someone from NREL takes the time to merge the code into the dev branch.
Bonnie Jonkman

Envision Energy USA, 2016-
National Renewable Energy Laboratory, 2003-2016

Return to “Computer-Aided Engineering Software Tools”

Who is online

Users browsing this forum: No registered users and 1 guest