Interface Openfast in Simulink

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

Moderators: Bonnie.Jonkman, Jason.Jonkman

Mohamed.Fekry
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 Simulink.zip)
error.JPG
error.JPG (42.09 KiB) Viewed 661 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?
Attachments
simulink.zip
(25.24 KiB) Downloaded 37 times
error.zip
(2.95 KiB) Downloaded 37 times

Bonnie.Jonkman
Posts: 566
Joined: Thu Nov 10, 2005 10:51 am
Organization: Envision Energy USA
Location: Colorado
Location: Boulder, CO
Contact:

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: 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.
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: Jason.Jonkman and 1 guest