FAST_SFunc

This forum if for discussing controls. Questions about how to implement controls in FAST are more appropriate to the CAE Tools forum.

Moderator: Bonnie.Jonkman

Sina.Ameli
Posts: 75
Joined: Mon Oct 15, 2018 11:23 am
Organization: FSU
Location: Florida

FAST_SFunc

Postby Sina.Ameli » Tue Jul 28, 2020 10:25 pm

Dear all,

Does anybody has the source code of "FAST_SFunc" block in Simulink for FAST v8 ? My problem is that when I want to open it, Matlab says that the S-Function source file cannot be found even though the simulation runs well.

Thank you

Best,
Sina

Jason.Jonkman
Posts: 4952
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: FAST_SFunc

Postby Jason.Jonkman » Fri Jul 31, 2020 10:56 am

Dear Sina,

The source code for the FAST S-Function (FAST_SFunc) in the interface between Simulink and FAST v8 is written in C. The source file FAST_SFunc.c is included in the Simulink/Source directory of the FAST v8 archive.

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Sina.Ameli
Posts: 75
Joined: Mon Oct 15, 2018 11:23 am
Organization: FSU
Location: Florida

Re: FAST_SFunc

Postby Sina.Ameli » Tue Aug 04, 2020 3:51 pm

Dear Dr. Jonkman,

Thanks for your response. Yes, I found this source code but it seems it is not a true/actual source code. If I don't set the path to the address you mentioned, then I cannot open the FAST_SFunc.c in Simulink; on the other hand, when I set path to this address, I can open it but it seems this file does not have to anything with the simulation. It seems, it is a template file. I also wrote something wrong in it, then the simulation still runs well! Am I missing something?

Thanks
Best regards,
Sina

Jason.Jonkman
Posts: 4952
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: FAST_SFunc

Postby Jason.Jonkman » Tue Aug 04, 2020 4:16 pm

Dear Sina,

The FAST_SFunc.c source code is compiled into FAST_SFunc.mexw32 or FAST_SFunc.mexw64 (for 32-bit or 64-bit Windows versions of MATLAB, respectively), which ends up as the FAST S-Function block in Simulink.

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov


Return to “Controls”

Who is online

Users browsing this forum: No registered users and 1 guest